Apache Ant - Path

Relative path

A relative path is resolved relative to the directory containing the build file.

  • using '.' means 'current directory',
  • and '..' means 'parent directory'

What is my path ?

You can add the echo task to the path that you defined. For instance, if you want the base directory.

<echo message="Base directory ${basedir}" />

You will get something like that:

 [echo] Base directory D:\svn\Java\Snippet

Documentation / Reference


Powered by ComboStrap