You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/08/17 16:45:49 UTC

svn commit: r1374296 - in /incubator/flex/tlf/branches/3.0: ./ build.xml

Author: cframpton
Date: Fri Aug 17 14:45:49 2012
New Revision: 1374296

URL: http://svn.apache.org/viewvc?rev=1374296&view=rev
Log:
Minor modifications so tlf/branches/3.0 will build. By default FLEX_HOME is the relative path to sdk/trunk. Override on cmd line with -D=FLEX_HOME=path if you'd like to use a different Flex SDK.

Modified:
    incubator/flex/tlf/branches/3.0/   (props changed)
    incubator/flex/tlf/branches/3.0/build.xml

Propchange: incubator/flex/tlf/branches/3.0/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 17 14:45:49 2012
@@ -0,0 +1 @@
+bin

Modified: incubator/flex/tlf/branches/3.0/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/tlf/branches/3.0/build.xml?rev=1374296&r1=1374295&r2=1374296&view=diff
==============================================================================
--- incubator/flex/tlf/branches/3.0/build.xml (original)
+++ incubator/flex/tlf/branches/3.0/build.xml Fri Aug 17 14:45:49 2012
@@ -16,13 +16,16 @@
 -->
 
 <project name="tlf" default="main" basedir=".">
-	<property name="FLEX_HOME" value="D:\flex_sdk_4.5.0.19786"/>
+
+    <!-- Default Flex SDK is the trunk.  Override on cmd line with -D=FLEX_HOME=path. -->
+	<property name="FLEX_HOME" value="${basedir}/../../../sdk/trunk"/>
+	<echo>FLEX_HOME is ${FLEX_HOME}</echo>
+	
 	<property name="flex.sdk.frameworks" value="${FLEX_HOME}/frameworks"/>
 	<property name="flex.locale" value="en_US"/>
 
 	<property name="output.dir" value="bin"/>
 	<property name="output.docs" value="${FLEX_HOME}/tempDoc"/>
-	<property name="flexTasks.location" value="${FLEX_HOME}/ant/lib/flexTasks.jar"/>
 	<property name="project.uri" value="library://ns.adobe.com/flashx/textLayout"/>
 	<property name="compc.jvm.args" value="-Xmx384m" />
 	<property name="textLayout.namespace" value="flashx.textLayout"/>
@@ -45,7 +48,14 @@
 		<istrue value="${debug}"/>
 	</condition>
 
-	<taskdef resource="flexTasks.tasks" classpath="${flexTasks.location}"/>
+    <!-- for Flex tags suchs as mxmlc and compc -->
+    <path id="flexTasks.path">
+        <fileset dir="${FLEX_HOME}">
+            <include name="lib/flexTasks.jar" />
+            <include name="ant/lib/flexTasks.jar" />
+        </fileset>
+    </path>
+	<taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/>
 
 	<target name="all" depends="clean,textLayout, asTestApps,textLayout_editBar, textLayout_ui, testApps, automation_core, automation_tests, automation_apps" description="Clean build of TLF component and associated applications"/>
 	<target name="main" depends="clean,textLayout" description="Clean build of textLayout.swc"/>