Java Tutorial/Ant/imported
Версия от 17:44, 31 мая 2010; (обсуждение)
Imported prefix
<?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>