ant build.xml文件将使用到的属性放到一个额外的build.properties文件里

build.xml:




<project name="Hello World Project" default="info">

<property file="build.properties"/>

<target name="info">

<echo>Apache Ant version is ${ant.version} - You are at ${sitename} echo>

target>

project>

build.properties的内容:


# The Site Name

sitename=www.sap.com

buildversion=3.3.2

输出:

ant build.xml文件将使用到的属性放到一个额外的build.properties文件里_第1张图片

你可能感兴趣的:(开源,Java)