You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by go...@apache.org on 2012/09/15 09:33:43 UTC

svn commit: r1385028 - in /incubator/flex/falcon/trunk/compiler.tests: Hello.as build.xml

Author: gordonsmith
Date: Sat Sep 15 07:33:43 2012
New Revision: 1385028

URL: http://svn.apache.org/viewvc?rev=1385028&view=rev
Log:
Falcon: Added tests of <mxmlc> and <compc> compiling Hello.as.

Added:
    incubator/flex/falcon/trunk/compiler.tests/Hello.as   (with props)
Modified:
    incubator/flex/falcon/trunk/compiler.tests/build.xml

Added: incubator/flex/falcon/trunk/compiler.tests/Hello.as
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.tests/Hello.as?rev=1385028&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.tests/Hello.as (added)
+++ incubator/flex/falcon/trunk/compiler.tests/Hello.as Sat Sep 15 07:33:43 2012
@@ -0,0 +1,14 @@
+package
+{
+import flash.display.Sprite;
+
+public class Hello extends Sprite
+{
+    public function Hello()
+    {
+        super();
+        trace("Hello");
+    }
+}
+
+}

Propchange: incubator/flex/falcon/trunk/compiler.tests/Hello.as
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/flex/falcon/trunk/compiler.tests/Hello.as
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/flex/falcon/trunk/compiler.tests/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.tests/build.xml?rev=1385028&r1=1385027&r2=1385028&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler.tests/build.xml (original)
+++ incubator/flex/falcon/trunk/compiler.tests/build.xml Sat Sep 15 07:33:43 2012
@@ -21,7 +21,11 @@
 
 <project name="compiler.tests" default="main" basedir=".">
 
-    <property name="sdk" value="${basedir}/../compiler/generated/dist/sdk"/>
+    <pathconvert property="compiler.tests" dirsep="/">
+        <path location="${basedir}"/>
+    </pathconvert>
+
+    <property name="sdk" value="${compiler.tests}/../compiler/generated/dist/sdk"/>
 
     <target name="jars">
         <java jar="${sdk}/lib/falcon-mxmlc.jar" fork="true"/>
@@ -31,6 +35,17 @@
         <java jar="${sdk}/lib/falcon-swfdump.jar" fork="true"/>
     </target>
 
-    <target name="main" depends="jars"/>
+    <target name="ant.tasks">
+        <property name="FLEX_HOME" value="${sdk}"/>
+        <taskdef resource="flexTasks.tasks" classpath="${sdk}/lib/flexTasks.jar"/>
+        <mxmlc file="${compiler.tests}/Hello.as"/>
+        <delete file="${compiler.tests}/Hello.swf"/>
+        <compc output="Hello.swc" include-classes="Hello">
+            <source-path path-element="${compiler.tests}"/>
+        </compc>
+        <delete file="${compiler.tests}/Hello.swc"/>
+    </target>
+
+    <target name="main" depends="jars, ant.tasks"/>
 
 </project>