java - Read <property> value from file within build.xml -


can read the property value external file instead of specifing value within <property> tag.

so instead of -

 <property name="device" value="test" /> 

use like

 <property name="device" value="c:\\filetoread" /> 

where file read contains test,test2,test3

thanks

in build.xml

<property file="general.properties" /> 

general.properties file

svnant.version=1.0.0 lib.dir=${ant.home}/lib 

so be:

<property file="c:\\filetoread" /> 

filetorread is

 device=test 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -