親ディレクトリで実行する必要のあるAntタスクがあります。basedirを親ディレクトリに設定すると、トークンが正しく置き換えられません。
<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>
そしてビルドプロパティ:
// this is the folder we want to publish the swf to
DEPLOY_DIR = ${basedir}/output
basedirが「。」に設定されている場合。結果は次のとおりです。
[mkdir] Created dir: /Users/me/Documents/projects/MyProject/output
baseirを親に設定すると、「../」の結果は次のようになります。
[mkdir] Created dir: /Users/me/Documents/projects/${DEPLOY_DIR}
望ましい結果は次のとおりです。
[mkdir] Created dir: /Users/me/Documents/projects/output
注:
ビルドスクリプトは次の場所にあります。
/Users/me/Documents/projects/MyProject/
Eclipseプロジェクトの外部にANTビルドファイルをインポートできないようです。