I have a directory structure and build.xml like this
/path-to-project/src/prj1 /path-to-project/src/prj2 /path-to-project/tests /path-to-project/tests/build.xml
I need to get a way somehow
/path-to-project/
in my build.xml file
My build.xml file is similar to this
<project name="php-project-1" default="build" basedir="."> <property name="source" value="src"/> <target name="phploc" description="Generate phploc.csv"> <exec executable="phploc"> <arg value="--log-csv" /> <arg value="${basedir}/build/logs/phploc.csv" /> <arg path="${source}" /> </exec> </target> </project>
Here, I somehow want to get the value of ${source} as /path-to-project/src/ , but I don't get it with ${parent.dir}
Is it possible to get this path in the build.xml file?
source share