[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: Re: Reverse PatternSet
From: Scott Goldstein <sdgoldst () mailandnews ! com>
Date: 2002-06-29 16:56:13
[Download RAW message or body]
Thanks for the help. That did the trick!
Scott
Diane Holt wrote:
> --- Erik Hatcher <jakarta-ant@ehatchersolutions.com> wrote:
> > Sorry for the confusion. I did not mean it would literally negate a
> > <patternset>, but that it could be used to accomplish the functionality
> > Scott asked about. You could create a <selector> that nested a
> > <filename> (or more, inside an <or>), and then another <selector>
> > that negated the previous one by refid.
>
> Yeah, okay, that'd work. (I gotta play with these things more :)
>
> <selector id="selector.java">
> <filename name="**/*.java"/>
> </selector>
>
> <fileset dir="src" id="fs1">
> <selector refid="selector.java"/>
> </fileset>
>
> <fileset dir="src" id="fs2">
> <not>
> <selector refid="selector.java"/>
> </not>
> </fileset>
>
> Results in "fs1" containing all the .java files under the src directory,
> and "fs2" containing all the files under the src directory except the
> .java files.
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> 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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic