ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Reverse PatternSet
Date Wed, 26 Jun 2002 01:56:53 GMT
Have a look at Selectors in Ant 1.5.  There is a <not> selector that would
do the trick.

    Erik


----- Original Message -----
From: "Scott Goldstein" <sdgoldst@mailandnews.com>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 9:17 PM
Subject: Reverse PatternSet


> Is there any way to reverse a PatternSet?  In other words, if a PatternSet
> includes a list of files, is there anyway that I can reverse it to that it
> excludes a list of files?
>
> Here's the context.
>
> I want to write a target that compiles a number of files in a src tree.
The
> classes, however, have two different destination directories.  So, I
wanted to
> write two javac tasks, one that excludes a patternset of file and compiles
to
> directory A and one that excludes the patternset of files and for to
directory
> B.
>
> Is there a better way of doing this?  Do I just have to define two
> Patternsets?
>
> Thanks for the help.
>
> Scott
>
> ------------------------------------------------------------
> "Just a mirror for the sun...
>  My smiling eyes are just a mirror for the sun."
> ------------------------------------------------------------
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message