Bug 50259 - Property substitution in target name
Summary: Property substitution in target name
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 19:45 UTC by Paul Alesius
Modified: 2010-11-11 19:45 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Alesius 2010-11-11 19:45:23 UTC
example:
<target name="${ant.project.name} : COMPILE">
</target>


This task outputs:

"${ant.project.name} : COMPILE"

instead of

"ProjectName : COMPILE".


I've tried with ant 1.7.1 and 1.8.1 and I'm not sure if this is the expected functionality, I suppose it's good that it doesn't change the name of the target.

I suggest adding a "message" attribute to the <target> element, that would be printed to the console instead of the tharget's name. It would provide for more comprehensible output instead of a generic task invocation's name.