A task could use its getOwningTarget() method for retrieving that information.
Because of property immutability that cant be stored in a property. And having 
parallel targets you'll get troubles ...

<parallel>
    <antcall target="one"/>
    <antcall target="two"/>
</parallel> 


Jan

>-----Ursprüngliche Nachricht-----
>Von: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 23. Februar 2007 03:55
>An: Ant Users List
>Betreff: Re: variable "target name"
>
>Hello,
>
>no, there is no such variable. I think other users asked for this.
>
>Regards,
>
>Antoine
>On Feb 22, 2007, at 9:08 AM, koellnch wrote:
>
>>
>> hi,
>>
>> i´m still quite new to ant.
>> the answer is perhaps simple, but i already searched for 
>some hours :(
>>
>> Is it possible to read and use the name of a target within the same  
>> target ?
>> something like ${ant.target.name} ? (i tried this one and also some  
>> other
>> possible names)
>> similar to ${ant.project.name}
>>
>> regards,
>> christian
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to