I’m having a problem when I try to call another ant build file and copying its result to a directory :
<!-- Copying PatientStation -->
<ant dir="../SubProject" antfile="build.xml" />
<copy todir="D:/Export">
<fileset dir="../SubProject/${fullVersionName}/jar" />
</copy>
After the ant call, I’m not positioned in the remote directory instead of the current one.
BUILD FAILED
D:\myWorkspace\Build\build1.xml:64: D:\myWorkspace\SubProject\D:\Export does not exist.
I dont’ have a PC in front of me, so I can’t say definitely what will work, but normally in Ant, if a directory doesn’t begin with a slash, it is assumed to be a sub-directory of the current
${basedir}.Try one of the following:
Or
Or
One of these will work.