Ant : Read Value From Property File.

Load the prop file and all its keys will be available as variable in xml file



<!--Load Property File -->
<loadproperties srcFile="build.prop"/>
<!--value from property file -->
<target name="test">
<!--echo-->
<echo>${value}</echo>
</target>

0 nhận xét:

Đăng nhận xét