ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: how to convert path to fileset
Date Mon, 29 Mar 2004 15:54:07 GMT
The problem is more that filesets can only have
one root  or base directory.
This base directory is used quite heavily in the ant core code.

On unix this is no problem as all files have a common
root directory.

On windows there is no notion of a common root directory,
due to its bizarre notion of "drives".

If the files have a comon root directory, one can use
ant-contrib's <pathtofileset> task.

Matt Benson wrote:

>--- Brian Lalor <> wrote:
>>Good morning, all.  I'm a relative Ant newbie and
>>struggling a bit with 
>>the notion of paths and filesets.   I'd really like
>>to be able to 
>>define a list of files that can be treated as either
>>a path or a 
>>fileset so that I can limit the number of places I
>>have to repeat 
>>things in my build descriptors.  Take, for example,
>So anyway, depending on what you need to do, you can
>go to different levels of complexity.  Basically,
>though, I would recommend you define these files as
>one or more "ref'd" <fileset>s, which you can nest
>into <path>s however you see fit, including declaring
>these as references as well.  Another interesting way
>to do it is to define your <fileset>s using
><selector>s, and just ref those.  You can convert a
><path> to a <fileset> using <pathconvert>, as Doug (I
>think) mentioned, but in this case it just might be
>the backward approach.
>Do you Yahoo!?
>Yahoo! Finance Tax Center - File online. File on time.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message