ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <>
Subject Re: setting var's in a property file
Date Sun, 31 Aug 2003 13:27:18 GMT
I saw the replies but unless I'm a bad reader, I didn't see what seems 
to me the most obvious way:

in your property file, define


and then when you want to use the full root property in your build.xml, 
construct it so:


On 08/28/2003 07:23 PM Yevgeni Kovelman wrote:
> 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

ant 1.6alpha + java 1.4.2 on Linux 2.4.20 RH9

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message