You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Shatzer, Larry" <La...@Spirent.com> on 2003/12/09 17:15:52 UTC

RE: Indirect referencing a property by the value of another prope rty

With as often as this comes up, should we put this in the FAQ's?

-- Larry

> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Tuesday, December 09, 2003 7:08 AM
> To: user@ant.apache.org
> Subject: RE: Indirect referencing a property by the value of another
> prope rty
> 
> 
> a) without any external
> You canĀ“t
> 
> b) with <script> (needs libraries)
>    propnameValue = project.getProperty("prop-name");
>    project.setNewProperty("prop", propnameValue);
> 
> c) with AntContrib (external task library)
>    <propertycopy name="prop" from="${prop-name}"/>
> 
> 
> Jan
>    
> 

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