Converted path : File Directory « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  
  <target name="properties.custom">
    <!-- Windows users should leave this line uncommented -->
    <property name="build.path" 
              value="${basedir}/build.xml:${basedir}/build.properties"/>

    <!-- Unix users should remove the above line 
         and uncomment the below line -->
    <!--
    <property name="build.path" 
              value="${basedir}\build.xml;${basedir}\build.properties"/>
    -->

    <path id="build.path.id">  
      <pathelement path="${build.path}"/>
    </path>

    <property name="build.path.property" refid="build.path.id"/>

    <!-- The converted string that Ant uses as a path -->
    <echo message="Converted string: ${build.path.property}"/>

    <!-- The unconverted string, which Ant treats as a string -->
    <echo message="Path: ${build.path}"/>
  </target>


</project>








38.5.File Directory
38.5.1.Get base directory and file separator
38.5.2.Construct path in ant script
38.5.3.Construct path under unix in ant script
38.5.4.Converted path
38.5.5.File set to include a file
38.5.6.Ant task delete tree
38.5.7.Ant task copy file
38.5.8.Ant task make dir
38.5.9.Accepts a selection if it is acceptable to both of two FilenameFilters