File separator : Path Dir « Ant « Java






File separator

 
<?xml version="1.0"?>

<project name="Apache Ant Properties Project" default="build.path" basedir=".">

  <target name="build.path">
    <echo message="File: ${basedir}${file.separator}build.xml"/>
    <echo message="Path: ${basedir}${file.separator}build.xml${path.separator}${basedir}${file.separator}build.properties"/>
  </target>

</project>

           
         
  








AntBasicTags.zip( 2 k)

Related examples in the same category

1.Specify basedir
2.Path separator
3.Build path unix
4.Get current location
5.Path convert
6.Ant path
7.Define path with file set
8.Ant task: make dir
9.Convert path format from one os to another
10.Path with pathelement