-----Original Message-----
From: Lars Ræder Clausen [mailto:lrc@amplex.dk]
Sent: Thursday, July 24, 2008 9:36 AM
To: Ant Users List
Subject: Re: Enforce order in copying so that my overiding works correctly
[ ... ]
/*
Speaking of FileSet, is it just me who's having trouble doing a set
union on FileSets? I'd have expected something like
<fileset id="set1" dir="/tmp"><include name="aFile"></fileset>
<fileset id="set2" dir="/etc"><include name="passwd"></fileset>
<fileset id="set3">
<include refid="set1"/>
<include refid="set2"/>
</fileset>
to give me a FileSet with two files in it, but it's not even legal,
and I have yet to find a legal way to do it. Is it just that the
internal representation of FileSet is not compatible with that kind of
operation?
*/
that can be achieved via resource collections in ant 1.7
i didn't use ant 1.7 yet, but you can do things like =
<!-- subtract the intersection -->
<difference id="foobar">
<fileset refid="yourfileset_1" />
<fileset refid="yourfileset_2" />
</difference>
and also count for further math operations =
<resourcecount property="count.foo">
<fileset refid="foo" />
</resourcecount>
see =
http://ant.apache.org/manual/CoreTypes/resources.html#collection
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|