You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mikael Sitruk <Mi...@Amdocs.com> on 2007/02/01 18:30:45 UTC
Selecting files from disparate directories when the files are not in other directories
Hi
Is it possible to select a set of files from several directories only if they are not present in another set of directories
For example I have:
Dir1: a.txt
Dir2: b.txt
Dir3: c.txt
Directories holding the files to exclude
Dir4: a.txt
I would like to get b.txt and c.txt only (since a.txt is present in Dir1 and Dir4)
Regards,
Mikael Sitruk
Amdocs Java Foundation
+972.9.776.1075 (desk)
AMDOCS > JF & EXTRACT TOOL
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
Re: Selecting files from disparate directories when the files are
not in other directories
Posted by "sam.hendley" <sa...@summus.com>.
You should look at the selectors in ant 1.7 (1.62?) they should allow you to
build the fileset by using the <present negate=true> selector in the
fileset.
Mikael Sitruk-2 wrote:
>
>
> Hi
>
>
>
> Is it possible to select a set of files from several directories only if
> they are not present in another set of directories
>
> For example I have:
>
>
>
> Dir1: a.txt
>
> Dir2: b.txt
>
> Dir3: c.txt
>
>
>
> Directories holding the files to exclude
>
> Dir4: a.txt
>
>
>
> I would like to get b.txt and c.txt only (since a.txt is present in Dir1
> and Dir4)
>
>
>
> Regards,
>
>
>
> Mikael Sitruk
>
> Amdocs Java Foundation
>
> +972.9.776.1075 (desk)
>
> AMDOCS > JF & EXTRACT TOOL
>
>
>
>
> 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
>
>
--
View this message in context: http://www.nabble.com/Selecting-files-from-disparate-directories-when-the-files-are-not-in-other-directories-tf3156276.html#a8873295
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org