ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: variable "target name"
Date Fri, 23 Feb 2007 08:12:21 GMT
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:antoine@gmx.de] 
>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: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message