Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
filelist/fileset with multiple directory

filelist/fileset with multiple directory

2007-01-24       - By Mikael Sitruk
Reply:     1     2     3     4     5     6     7     8     9     10  


Hi



I would like to know if it is possible to define a fileset/filelist that will
return the first occurrence of the patterned file from a list of directories,
like the java class loading and path.

For example suppose we have 3 directories:

Dir1: a.txt, b.java

Dir2: a.txt,c:jar

Dir3: b.java



I want to be able to get the files Dir1/a.txt, Dir1/b.java, Dir2/c.jar, just by
defining a file set ?a.txt, b.java, c.jar? and a search path: Dir1, Dir2, Dir3

Is it possible? Is there a specific task for this?



10x



Mikael Sitruk

Amdocs Java Foundation




This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.