Reputation: 9
<property file="Build.properties"/>
this is valid if build.properties
file is in root of project.now if the Build.properties file is in src folder and build.xml
is in root(main project root).then what will be the syntax to access that build.properties
file.
Upvotes: 0
Views: 262
Reputation: 18468
Other answers are valid. Note that you can pass a property file as ant command line
ant -propertyfile src/build.properties
Upvotes: 0
Reputation: 73
You can define property at starting of your ant script. And use ${proj_home}*.properties to access your property file. Hope it helps.
Upvotes: 2
Reputation: 653
It can be done by giving in two ways
give the loction in classpath.
<property file="src/build.properties" />
Both of them worked for me.
Upvotes: 2