Referrence property: basedir
<?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>