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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]