ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Help with selectors
Date Wed, 11 Sep 2002 16:20:37 GMT
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 <bodewig@apache.org> wrote:
> On Wed, 11 Sep 2002, Dominique Devienne
> <DDevienne@lgc.com> 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:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 


__________________________________________________
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message