ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: subant and empty filelist
Date Fri, 07 Nov 2003 23:38:25 GMT
> From: Dominique Devienne [mailto:DDevienne@lgc.com]
> 
> > From: Bo Rasmussen [mailto:krogenlund@hotmail.com]
> >
> > The problem is that for lowest level project that don't depend on
> > other projects the dependent_projects is not redefined. When run it
> > gives an ANT error
> >
> >    [subant] No directory specified for filelist.
> >
> > which is actually true - but not what I want! In my head it simply
> > means don't run any subant targets.
> >
> > I've tried to set the failonerror to no - but this doesn't always
> > seem to work. Furthermore I would like to avoid the error message.
> >
> > Am I doing something wrong ?
> 
> I personally think <filelist> stinks ;-)
> 
> How about you use a <path> instead of a <filelist>. <subant> works
great
> with Paths (it was what it was designed to work with in the first place),
> *and* a <path> can be empty!
> 
> <path id="dependent_projects" />
> 
> <subant>
>   <path refid="dependent_projects" />
> <subant>

Forgot to say to use nested <pathelement>s to specify the build path to
provide to <subant>, in place of the <filelist>. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message