Thanks, ?but I need to set the id of the original property not the refid on a property that references it?
---------------------------------------------------------------------------- -------------- This message is private and confidential. If you have received this message in error, please notify [email protected] and remove it from your system. Please carry out your own virus check before opening attachments. HISL Limited is a limited company registered in England and Wales. Registered Number: 3202995. VAT number: 729-6256-05. Registered Office: Chestnut Farm, Jill Lane, Sambourne, Redditch B96 6ES ---------------------------------------------------------------------------- -------------- -----Original Message----- From: Cole, Derek E [mailto:[email protected]] Sent: 12 May 2009 16:27 To: Ant Users List Subject: RE: API for setting a property reference? Look at the property class in the Ant API. There is a setRefId method that might do what you're talking about. -----Original Message----- From: John Francis [mailto:[email protected]] Sent: Tuesday, May 12, 2009 11:21 AM To: [email protected] Subject: API for setting a property reference? Hi, Is there a way to programmatically (i.e. using the API) set the id of a property in Ant, so I can reference it via refid later on? ( Similar to "Java Development with Ant" first edition pp 80-81 but in code ) <property name="param" value="changes" /> <property name="changes" value="What I want" id="changes.prop" /> <property name="selector" value="${param}" /> <property name="Message" refid="${selector}.prop"/> <echo message="Message = ${Message}"/> Thanks ------------------------------------------------------------------------ ---- -------------- This message is private and confidential. If you have received this message in error, please notify [email protected] and remove it from your system. Please carry out your own virus check before opening attachments. HISL Limited is a limited company registered in England and Wales. Registered Number: 3202995. VAT number: 729-6256-05. Registered Office: Chestnut Farm, Jill Lane, Sambourne, Redditch B96 6ES ------------------------------------------------------------------------ ---- -------------- --------------------------------------------------------------------- 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]
