Mega Code Archive

 
Categories / Java / Ant
 

Value in the properties file overwrite the value in the build xml

<?xml version="1.0"?> <project name="Apache Ant Properties Project" default="print-global" basedir=".">   <property file="build.properties"/>   <property file="build.properties.default"/>   <property name="property.example" value="Global"/>   <target name="print-global">     <echo message="In print-global"/>     <echo message="The value of property.example is: ${property.example}"/>   </target> </project> -------------------------------------------------------------------------------------- File: build.properties property.example=Local File property.file.example=build.properties -------------------------------------------------------------------------------------- File: build.properties.default property.example=Default File property.file.example=build.properties.default                          AntBasicTags.zip( 2 k)