Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

Re: Adding magic properties for targets?

Stefan Bodewig

2008-06-04

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.