| |
38. 7. 1. 加载前缀 |
|
<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
<target name="properties">
<property file="build.properties" prefix="imported"/>
<path id="build.classpath.id">
<pathelement path="${imported.build.classpath}"/>
</path>
<property name="build.classpath.property" refid="build.classpath.id"/>
<echo message="Server URL: ${imported.server.url}"/>
<echo message="Build classpath: ${imported.build.classpath}"/>
<echo message="Build classpath converted: ${build.classpath.property}"/>
</target>
</project>
|
|
|