incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gordonsm...@apache.org
Subject svn commit: r1385025 - in /incubator/flex/falcon/trunk: build.xml compiler.tests/ compiler.tests/build.xml compiler/build.xml
Date Sat, 15 Sep 2012 07:08:40 GMT
Author: gordonsmith
Date: Sat Sep 15 07:08:39 2012
New Revision: 1385025

URL: http://svn.apache.org/viewvc?rev=1385025&view=rev
Log:
Falcon: Added extremely rudimentary tests to check that the five JARs can start up OK.

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

Modified: incubator/flex/falcon/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/build.xml?rev=1385025&r1=1385024&r2=1385025&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/build.xml (original)
+++ incubator/flex/falcon/trunk/build.xml Sat Sep 15 07:08:39 2012
@@ -33,6 +33,10 @@
         <ant dir="compiler" target="main"/>
     </target>
 
+    <target name="tests" description="Runs the tests.">
+        <ant dir="compiler.tests" target="main"/>
+    </target>
+
     <target name="clean" description="Cleans the build output but leaves any downloaded
JARs.">
         <ant dir="compiler" target="clean"/>
     </target>

Added: incubator/flex/falcon/trunk/compiler.tests/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.tests/build.xml?rev=1385025&view=auto
==============================================================================
--- incubator/flex/falcon/trunk/compiler.tests/build.xml (added)
+++ incubator/flex/falcon/trunk/compiler.tests/build.xml Sat Sep 15 07:08:39 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" ?>
+
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<project name="compiler.tests" default="main" basedir=".">
+
+    <property name="sdk" value="${basedir}/../compiler/generated/dist/sdk"/>
+
+    <target name="jars">
+        <java jar="${sdk}/lib/falcon-mxmlc.jar" fork="true"/>
+        <java jar="${sdk}/lib/falcon-compc.jar" fork="true"/>
+        <java jar="${sdk}/lib/falcon-asc.jar" fork="true"/>
+        <java jar="${sdk}/lib/falcon-optimizer.jar" fork="true"/>
+        <java jar="${sdk}/lib/falcon-swfdump.jar" fork="true"/>
+    </target>
+
+    <target name="main" depends="jars"/>
+
+</project>

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

Modified: incubator/flex/falcon/trunk/compiler/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler/build.xml?rev=1385025&r1=1385024&r2=1385025&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler/build.xml (original)
+++ incubator/flex/falcon/trunk/compiler/build.xml Sat Sep 15 07:08:39 2012
@@ -152,19 +152,19 @@
         <attribute name="input"/>
         <attribute name="output"/>
         <sequential>
-            <dirname property="as3.codegen.emitter.@{input}.dirname" file="@{input}"/>
-            <dirname property="as3.codegen.emitter.@{output}.dirname" file="@{output}"/>
-            <basename property="as3.codegen.emitter.@{output}.basename" file="@{output}"/>
-            <mkdir dir="${as3.codegen.emitter.@{output}.dirname}"/>
+            <dirname property="jburg.dirname.@{input}" file="@{input}"/>
+            <dirname property="jburg.dirname.@{output}" file="@{output}"/>
+            <basename property="jburg.basename.@{output}" file="@{output}"/>
+            <mkdir dir="${jburg.dirname.@{output}}"/>
             <java classname="jburg.burg.JBurgMain"
                   classpath="${compiler}/generated/classes"
                   fork="true" failonerror="true"
-                  dir="${as3.codegen.emitter.@{input}.dirname}">
+                  dir="${jburg.dirname.@{input}}">
                 <arg value="@{input}"/>
                 <arg value="-outputdir"/>
-                <arg value="${as3.codegen.emitter.@{output}.dirname}"/>
+                <arg value="${jburg.dirname.@{output}}"/>
                 <arg value="-outputfile"/>
-                <arg value="${as3.codegen.emitter.@{output}.basename}"/>
+                <arg value="${jburg.basename.@{output}}"/>
                 <arg value="-g"/>
                 <classpath>
                     <pathelement path="${compiler}/generated/classes"/>



Mime
View raw message