ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: Get task name
Date Thu, 10 May 2001 14:12:30 GMT
At 08:04  10/5/01 -0600, Joe Fisher wrote:
>I want to get the name of the current task and use it in my task
>
>for example
>	<target name="XtendTree" depends="info">
>		<echo message="Getting XtendTree to ${BuildDir}"/>
>		<mkdir dir="${BuildDir}\XtendTree"/>
>		...
>	</target>
>
>I want to replace the line
>		<mkdir dir="${BuildDir}\XtendTree"/>
>with something like
>		<mkdir dir="${BuildDir}\${this task name}"/>

I assume you mean "target" rather than "task". I don't think what you want
is possible - you have to manually type it in ;/

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message