ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhaval Chokshi" <>
Subject Re: setting var's in a property file
Date Tue, 02 Sep 2003 06:36:50 GMT
You can make one dummy file with the tag @build-tag@ in your file. Then in
your ant you can copy that file to your property file with the filter set
option like,

  <copy todir="XYZ" file="PROPERTYFILE">
            <filter token="build-tag" value="${now}" />

Dhaval Chokshi
Jr. Software Engineer
Elitecore Technologies Ltd.

Work as if you were to die tomorrow. Learn as if you were to live forever.
-- Mahatma Gandhi

----- Original Message -----
From: "Yevgeni Kovelman" <>
To: <>
Sent: Thursday, August 28, 2003 10:53 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:
For additional commands, e-mail:

View raw message