Reading values from property file through NANT -
How can I read only one value from the property file For example, I have build.home or temp.dir How can I read the values of
Content of env.properties
build.home = c: \ Build temp.dir = c: \ temp Regards
Charioteer
We do it for nant in a little different format.
In your build file:
& lt; Buildfile = "./include Env.properties" failonerror = "true" /> env.properties:
& lt ;? XML version = "1.0"? & Gt; & Lt; Project & gt; & Lt; Property Name = "build.home" value = "c: / build" /> & Lt; Property Name = "temp.dir" value = "c: / temp" /> & Lt; / Project & gt;
Comments
Post a Comment