ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Madison" <...@tfftech.com>
Subject Re: setting var's in a property file
Date Fri, 29 Aug 2003 01:55:14 GMT
the best thing i can think of is using the <property> task and setting the
entire key value pair. it will be replaced in the properties file.
this is documented in the "Core Tasks" section of the Ant manual.

j.

---
Jon Madison
Consultant, Thought For Food Tech, LLC
http://www.tfftech.com/
http://jon.madisons.com/
----- Original Message ----- 
From: "Yevgeni Kovelman" <ykovelman@telabout.com>
To: <user@ant.apache.org>
Sent: Thursday, August 28, 2003 12: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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message