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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -