ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <j_a_fernan...@yahoo.com>
Subject Re: ant bug or user error?
Date Thu, 28 Mar 2002 02:23:32 GMT
From: "Adam Murdoch" <adammurdoch_ml@yahoo.com>

> 
> 
> > -----Original Message-----
> > From: Jose Alberto Fernandez [mailto:j_a_fernandez@yahoo.com]
> 
> >
> > What I would like to do is to add a new command-line
> > option (and acompaning magic property) called "-once"
> > what this would do is treat the list of targets in the
> > command line as follows:
> >
> >   ant -once t1 t2 t3 t4
> >
> > executes a synthetic target "-once" defined as:
> >
> >   <target name="-once" depends="t1, t2, t3, t4"/>
> >
> > this should be quite easy to do, I think, and would
> > solve this issue to those who need it. The same
> > behaviour should work for:
> >
> >   <ant target="t1, t2, t3" ... />
> >
> > which would be a nice enhancement for this task.
> >
> > Thoughts?
> >
> 
> Something like this would be quite handy.
> 
> I'm not sure about the synthetic target, though.  We simply need to seed
> Project.topoSort() with all of the targets from the command-line, rather
> than a single root target (the implementation would need a quick spot of
> refactoring, but certainly nothing that would be visible outside of
> Project).
> 

That is exactly my thought. The synthetic target is just a way to describe
the behaviour, implementation wise it should not exists as such phisically.

Jose Alberto



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message