Well, as far as an isempty condition goes, could you use foreach to do an antcall on a target that sets a property and then check whether the property was set?
-Matt P.S. I realize this isn't built-in, but ant-contrib is the next best thing! :) --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 11 Sep 2002, Dominique Devienne > <[EMAIL PROTECTED]> wrote: > > > 3) I want to get all the sources I didn't get > earlier in the > > other modules in a final 'misc' module. > > > > 4) Finally, I want to check I didn't copy any file > to more than one > > module. > > > > To achieve (3), I tried the following: > > > > <fileset id="misc-sources" > > dir="${ds.home}/src"> > > <!-- This fileset selects all files not > selected by all > > the different modules. It should be > empty!!! --> > > <none> > > <present present="both" targetdir="A/src" /> > > <present present="both" targetdir="B/src" /> > > <present present="both" targetdir="C/src" /> > > </none> > > </fileset> > > > > I tried using either 'both' > > Should work (but I tend to get my logic wrong 8-). > > > or 'srconly' > > With <none> replaced by <and>, yes? > > > I have no clue how to achieve (4). > > Write an <isempty> condition that accepts a nested > <fileset>? Can't > come up with a built-in way, sorry. > > Stefan > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>