RE: filelist/fileset with multiple directory

2007-01-25 Thread Mikael Sitruk
ld like to change the returnsfirstmatch to Or Is it possible? 10x -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Thursday, 25 January, 2007 06:39 To: user@ant.apache.org Subject: Re: filelist/fileset with multiple directory On Thu, 2

Re: filelist/fileset with multiple directory

2007-01-24 Thread Stefan Bodewig
On Thu, 25 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote: > 1. From my understanding the selector are part of a fileset, Not necessarily, in my answer I used it inside a resource collection (and I used a Resourceselector, not a FileSelector). Stefan

RE: filelist/fileset with multiple directory

2007-01-24 Thread Mikael Sitruk
t: Re: filelist/fileset with multiple directory > 1. From my understanding the selector are part of a fileset, but in a fileset > the dir attribute is mandatory and point only to one directory. > So is really a selector the appropriate choice? Right. But you can always use a common p

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
1. From my understanding the selector are part of a fileset, but in a fileset the dir attribute is mandatory and point only to one directory. So is really a selector the appropriate choice? Right. But you can always use a common parent dir, and later use filename mappers. This does assume that

RE: filelist/fileset with multiple directory

2007-01-24 Thread Mikael Sitruk
From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Wednesday, 24 January, 2007 22:12 To: Ant Users List Subject: Re: filelist/fileset with multiple directory On 1/24/07, Matt Benson <[EMAIL PROTECTED]> wrote: > If we can think of an elegant way to design this, this > question comes

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
Oops, depends on this base class ;-) import java.io.File; import java.util.StringTokenizer; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.types.Parameter; import org.apache.tools.ant.types.selectors.FileSelector; import org.apache.tools.ant.types.selectors.BaseExtend

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
On 1/24/07, Matt Benson <[EMAIL PROTECTED]> wrote: If we can think of an elegant way to design this, this question comes up enough that it might be useful to include such a selector in Ant core. This is not exactly the same selector, but close enough that the code should be trivial to adapt to

Re: filelist/fileset with multiple directory

2007-01-24 Thread Matt Benson
If we can think of an elegant way to design this, this question comes up enough that it might be useful to include such a selector in Ant core. $0.02, Matt --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 24 Jan 2007, Mikael Sitruk > <[EMAIL PROTECTED]> wrote: > > > I would like to know

Re: filelist/fileset with multiple directory

2007-01-24 Thread Stefan Bodewig
On Wed, 24 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote: > 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 di