Get current location : Path Dir « Ant « Java






Get current location

 
<?xml version="1.0"?>

<project name="Apache Ant Properties Project" default="properties.custom" basedir=".">

  <target name="properties.custom">
    <property name="project.dtd" location="project.dtd"/>
    <echo message="Location of project.dtd: ${project.dtd}"/>
  </target>

</project>

           
         
  








AntBasicTags.zip( 2 k)

Related examples in the same category

1.Specify basedir
2.File separator
3.Path separator
4.Build path unix
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