Define custom property based on existing properties
<?xml version="1.0"?> <project name="Apache Ant Properties Project" default="properties.custom" basedir="."> <target name="properties.custom"> <property name="fs" value="${file.separator}"/> <property name="ps" value="${path.separator}"/> <echo message="File: ${basedir}${fs}build.xml"/> <echo message="Path: ${basedir}${fs}build.xml${ps}${basedir}${fs}build.properties"/> </target> </project>