From: "Adam Murdoch" <[EMAIL PROTECTED]> > > > > -----Original Message----- > > From: Jose Alberto Fernandez [mailto:[EMAIL PROTECTED] > > > > > 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
