ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Becroft <djcbecr...@gmail.com>
Subject Re: <fileset> exclude A/a if B/a exists
Date Thu, 04 Nov 2010 00:52:56 GMT
On Thu, Nov 4, 2010 at 8:01 AM, Dominique Devienne <ddevienne@gmail.com>wrote:

> On Wed, Nov 3, 2010 at 4:49 PM, Daniel Becroft <djcbecroft@gmail.com>
> wrote:
> > I am trying to construct a <fileset> definition to exclude any files in
> > /alpha if the same filename exists in /beta.
>
> See the <present> selector in the manual. --DD
>

Thanks, DD, that looks like it does what I want. However, I only want to
apply this selector to a subset of the entries in the fileset. I forgot to
mention that in the original email.

For example:

\alpha\foo.c
\alpha\A.txt
\beta\foo.c
\beta\bar.c
\gamma\foo.c

I want to select everything, but only apply the <present> selector to
anything under \alpha (everything under \beta and \gamma should be selected
as normal). I can't seem to find a solution without using two FileSets.

This is more out of curiosity.

 PS: I think that's the 3rd time I answered this question recently ;)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message