Re: Checking whether a file is executable

2009-10-23 Thread Stefan Bodewig
On 2009-10-23, Francis GALIEGUE wrote: > On Fri, Oct 23, 2009 at 23:50, Shawn Castrianni > wrote: >> I run ANT with 1.6 all the time.  Therefore, you could always write your own >> condition or task with ANT API just as long as you run your ANT builds with >> 1.6. > Which kind of leads back

Re: Checking whether a file is executable

2009-10-23 Thread Stephen Connolly
http://ant.apache.org/manual/tutorial-writing-tasks.html ;-) 2009/10/23 Francis GALIEGUE > On Fri, Oct 23, 2009 at 23:50, Shawn Castrianni > wrote: > > I run ANT with 1.6 all the time. Therefore, you could always write your > own condition or task with ANT API just as long as you run your ANT

Re: Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
On Fri, Oct 23, 2009 at 23:50, Shawn Castrianni wrote: > I run ANT with 1.6 all the time.  Therefore, you could always write your own > condition or task with ANT API just as long as you run your ANT builds with > 1.6. > Which kind of leads back to my original question somewhat, even if this wa

RE: Checking whether a file is executable

2009-10-23 Thread Shawn Castrianni
I run ANT with 1.6 all the time. Therefore, you could always write your own condition or task with ANT API just as long as you run your ANT builds with 1.6. --- Shawn Castrianni -Original Message- From: Francis GALIEGUE [mailto:f...@one2team.com] Sent: Friday, October 23, 2009 4:44 PM

Re: Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
On Fri, Oct 23, 2009 at 22:57, Shawn Castrianni wrote: > I had a similar request in this email list.  Here is a link: > > http://www.nabble.com/zip-tar-and-file-permissions-td22315686.html > > It has some feedback on this subject. > Aiee... I didn't know that the .canExecute() method only appeare

RE: Checking whether a file is executable

2009-10-23 Thread Shawn Castrianni
I had a similar request in this email list. Here is a link: http://www.nabble.com/zip-tar-and-file-permissions-td22315686.html It has some feedback on this subject. --- Shawn Castrianni -Original Message- From: Francis GALIEGUE [mailto:f...@one2team.com] Sent: Friday, October 23, 200

Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
Hello, Ant's condition can check whether a file exists and is a regular file (with type="file"), but I have seen no condition that can tell me whether a given regular file is executable (sorry for the Unix speak - FWIW, a regular file is just that, a file - a directory is just another type of fil

Re: global setttings for fileset to be case insenstive

2009-10-23 Thread Raja Nagendra Kumar
Thank you. This approach works only with the top level filesets only. Is not working with javac or copy etc. May be ant should have some unversal approach to allow the people to set the defaults to any ant task say in this context by setting the property default.fileset.casesensitive=true In

Re: global setttings for fileset to be case insenstive

2009-10-23 Thread Antoine Levy-Lambert
Hello Raja, with presetdef it is possible to feed default attributes and default nested elements to tasks. Does it work for types too ? here a try : ${toString:myfileset} and here is the output : Buildfile: doit.xml Trying to override old definition of datatype filese