There are several possibilities :
in ant-contrib there is a propertycopy task which can expand ${something} in
a property value
you can also manipulate your property file with :
- the propertyfile task (under optional tasks in ant)
- you can try your luck with the replace task or the replaceregexp task.
Note that the replace task does not expand properties if you use CDATA in
the tokens currently. (known bug).- My prefered path would be the one with the loadproperties http://ant.apache.org/manual/CoreTasks/loadproperties.html with nested filterchain. http://ant.apache.org/manual/CoreTypes/filterchain.html Actually there is an expandproperties filter and a replacetokens filters, one of them should provide the functionality you want. Cheers, Antoine ----- Original Message ----- From: "Yevgeni Kovelman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 28, 2003 7:23 PM Subject: setting var's in a property file > Hello, > > I have a standard java property file of type key=value included in my > build. There is a variable that I would like to set in that property > file during the ant build process. > > For example: > > root=//some//directory//{build-tag} > > I have a variable $now defined in my build script, during the build I > would like to replace {build-tag} with $now. Is there anyway to do that > ? > > Thanks, > Yev > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
