Updated Branches: refs/heads/develop b77d12d91 -> db300defe
add variable and auto-detect for tlf folder Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/ee7c3951 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/ee7c3951 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/ee7c3951 Branch: refs/heads/develop Commit: ee7c3951315a30d23f1d584ba1473d81e7c6789f Parents: b77d12d Author: Alex Harui <[email protected]> Authored: Thu Mar 21 21:29:51 2013 -0700 Committer: Alex Harui <[email protected]> Committed: Thu Mar 21 21:29:51 2013 -0700 ---------------------------------------------------------------------- frameworks/projects/textLayout/build.xml | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ee7c3951/frameworks/projects/textLayout/build.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/textLayout/build.xml b/frameworks/projects/textLayout/build.xml index a5dd159..7437408 100644 --- a/frameworks/projects/textLayout/build.xml +++ b/frameworks/projects/textLayout/build.xml @@ -30,6 +30,16 @@ <property name="flexTasks.location" value="${FLEX_HOME}/lib/flexTasks.jar"/> <property name="project.uri" value="library://ns.adobe.com/flashx/textLayout"/> + <available file="${FLEX_HOME}/../flex-tlf" + type="dir" + property="tlf.branch" + value="${FLEX_HOME}/../flex-tlf" /> + + <available file="${FLEX_HOME}/../tlf" + type="dir" + property="tlf.branch" + value="${FLEX_HOME}/../tlf" /> + <available file="${source.dir}" type="dir" property="src.folder.exists"/> @@ -192,13 +202,13 @@ </target> <target name="compile.external" description="Compile textLayout.swc in flex-tlf repo" unless="src.folder.exists"> - <ant dir="${FLEX_HOME}/../flex-tlf/" target="textLayout_flex"/> - <copy file="${FLEX_HOME}/../flex-tlf/bin/textLayout.swc" toDir="${FLEX_HOME}/frameworks/libs" /> + <ant dir="${tlf.branch}" target="textLayout_flex"/> + <copy file="${tlf.branch}/bin/textLayout.swc" toDir="${FLEX_HOME}/frameworks/libs" /> </target> <target name="clean-external" description="clean in flex-tlf repo" unless="src.folder.exists"> - <echo message="cleaning flex-tlf" /> - <ant dir="${FLEX_HOME}/../flex-tlf/" target="clean"/> + <echo message="cleaning ${tlf.branch}" /> + <ant dir="${tlf.branch}" target="clean"/> </target> <target name="clean-temp-docs">
