Antoine,
Thanks for that - I probably will just use selectors for some of
my more complicated stuff. However I sorted my original problem
which was occuring because of a difference between <include> and
<filename>:
<jar destfile="myjar.jar">
<fileset dir="src">
<patternset refid="my.src"/>
<include name="**/foo/**"/>
</fileset>
</jar>
includes both the files in the patternset and those matching the
<include> element, whereas
<jar destfile="myjar.jar">
<fileset dir="src">
<patternset refid="my.src"/>
<filename name="**/foo/**"/>
</fileset>
</jar>
includes only those files in the patternset which also match the
<filename> element - which is exactly what I needed.
I was thrown off track a little by the core selector doco that
states "<filename> - ... Equivalent to the include and exclude
elements of a patternset.", but a bit of playing around solved
the problem.
Thanks for you help.
----- Original Message -----
From: Antoine Lévy-Lambert <antoine@antbuild.com>
Date: Fri, 17 Oct 2003 01:15:47 +0200
To: "Ant Users List" <user@ant.apache.org>
Subject: AW: Refining the results of a patternset
> Hi Barney,
>
> do it all with selectors (the filename selector is about the same in terms
> of functionality as include/exclude patterns) or all with patterns.
> The only advantage of the filename selector compared to include/exclude
> patterns is that you can combine it with other selectors.
>
> Cheers,
> Antoine
>
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|