ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Adding magic properties for targets?
Date Wed, 04 Jun 2008 10:02:03 GMT
OK,

this is what I intend to do more or less now: take the patch from
https://issues.apache.org/bugzilla/show_bug.cgi?id=44980 and create
two new magic properties

ant.project.default-target
ant.project.invoked-targets

which take the default target of the project tag (or an empty string
if no default target exists) and a comma separated list of targets
specified on the command line (or whatever happens to be in the
targets Vector during the runBuild method of Main).

I'll see that I add AntUnit tests (though the one for invoked-targets
might be tricky).

While I do like Dominique's idea of ${dynamic:ant.current-target}, I'm
not ready to iplement that as well, since I'd really have a lot of
code-reading in order to understand PropertyHelpers (again).

Stefan

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


Mime
View raw message