Java Mailing List Archive

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  


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,

Dir2: a.txt,c:jar


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

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


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

©2008 - Jax Systems, LLC, U.S.A.