You can do the following:
<path id="workspacePath" location=".." />
<pathconvert property="workspace" refid="workspacePath"/>
<property name="otherProject" value="${workspace}/otherProjet" />
<echo>The other project path is ${otherProject} </echo>
The path workspace should return the parent of ${basedir}
. If you did not set this value, ${basedir}
is set to "."
(the directory of the build.xml). If you did set the ${basedir}
to a different value, then you will need to adjust the value of location attribute.