Java Tutorial/Ant/imported

Материал из Java эксперт
Перейти к: навигация, поиск

Imported prefix

   <source lang="java">

<?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></source>