ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@Spirent.com>
Subject RE: Indirect referencing a property by the value of another prope rty
Date Tue, 09 Dec 2003 16:15:52 GMT
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


Mime
View raw message