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>