Specify basedir : Path Dir « Ant « Java






Specify basedir

 
<?xml version="1.0"?>

<project name="Apache Ant Properties Project" default="properties.built-in" basedir=".">

  <target name="properties.built-in">
    <echo message="The base directory: ${basedir}"/>      
    <echo message="This file: ${ant.file}"/>
    <echo message="Ant version: ${ant.version}"/> 
    <echo message="Project name: ${ant.project.name}"/>     
    <echo message="Java version: ${ant.java.version}"/>     
  </target>
</project>
           
         
  








AntBasicTags.zip( 2 k)

Related examples in the same category

1.File separator
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