I have an Ant task that needs to run in the parent directory. When I set the basedir to the parent directory the tokens are not replaced correctly.
<project name="Flex Ant Tasks Build Script" default="compileFlex" basedir="../">
<!-- load previously defined configuration properties file -->
<property file="local_build.properties" />
<!-- delete and create the DEPLOY dir again -->
<target name="init">
<delete dir="${DEPLOY_DIR}" />
<mkdir dir="${DEPLOY_DIR}" />
</target>
And the build properties:
// this is the folder we want to publish the swf to
DEPLOY_DIR = ${basedir}/output
When the basedir is set to "." the result is:
[mkdir] Created dir: /Users/me/Documents/projects/MyProject/output
When I set the basedir to the parent, "../" the result is:
[mkdir] Created dir: /Users/me/Documents/projects/${DEPLOY_DIR}
The desired result is:
[mkdir] Created dir: /Users/me/Documents/projects/output
NOTE:
The build script resides in:
/Users/me/Documents/projects/MyProject/
because I can't seem to import any ANT build files outside of the Eclipse project