Apache Ant - Path

Card Puncher Data Processing

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

Discover More
Card Puncher Data Processing
Ant - Classpath

Classpath in a Ant Context The classpath element is defined and has the scope of a task. where: the location attribute refer to a single file or directory relative to the project's base directory...
Card Puncher Data Processing
Apache Ant - Base Directory (basedir)

The base directory is the directory path from which all path calculations are done. The basedir is define in this order: basedir project attribute basedir property (without the basedir project tag)...

Share this page:
Follow us:
Task Runner