flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [32/51] [abbrv] git commit: [flex-asjs] [refs/heads/spark] - building main SWC will build JS SWC first if needed
Date Thu, 26 May 2016 23:05:16 GMT
building main SWC will build JS SWC first if needed


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/817b0e7e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/817b0e7e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/817b0e7e

Branch: refs/heads/spark
Commit: 817b0e7e33401b0edac134c560b16c4b78fd770a
Parents: 495fcfa
Author: Alex Harui <aharui@apache.org>
Authored: Wed May 18 13:15:56 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Thu May 26 16:04:23 2016 -0700

----------------------------------------------------------------------
 frameworks/projects/Binding/build.xml     | 11 ++++++++++-
 frameworks/projects/Charts/build.xml      | 11 ++++++++++-
 frameworks/projects/Collections/build.xml | 11 ++++++++++-
 frameworks/projects/Core/build.xml        | 11 ++++++++++-
 frameworks/projects/CreateJS/build.xml    | 11 ++++++++++-
 frameworks/projects/DragDrop/build.xml    | 11 ++++++++++-
 frameworks/projects/Effects/build.xml     | 11 ++++++++++-
 frameworks/projects/Flat/build.xml        | 11 ++++++++++-
 frameworks/projects/Formatters/build.xml  | 11 ++++++++++-
 frameworks/projects/GoogleMaps/build.xml  | 11 ++++++++++-
 frameworks/projects/Graphics/build.xml    | 11 ++++++++++-
 frameworks/projects/HTML/build.xml        | 11 ++++++++++-
 frameworks/projects/HTML5/build.xml       | 11 ++++++++++-
 frameworks/projects/JQuery/build.xml      | 11 ++++++++++-
 frameworks/projects/Mobile/build.xml      | 11 ++++++++++-
 frameworks/projects/Network/build.xml     | 11 ++++++++++-
 frameworks/projects/Reflection/build.xml  | 11 ++++++++++-
 frameworks/projects/Storage/build.xml     | 11 ++++++++++-
 18 files changed, 180 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Binding/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/build.xml b/frameworks/projects/Binding/build.xml
index dce2b49..721aa8e 100644
--- a/frameworks/projects/Binding/build.xml
+++ b/frameworks/projects/Binding/build.xml
@@ -31,7 +31,16 @@
     <property name="target.name" value="Binding.swc" />
     <property name="target.name.no.version" value="Binding.swc" />
 
-    <target name="main" depends="clean,compile,test-js" description="Full build of Binding.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test-js" description="Full
build of Binding.swc">
+    </target>
+    
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
     
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Charts/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Charts/build.xml b/frameworks/projects/Charts/build.xml
index 60e8fd4..7c36fb6 100644
--- a/frameworks/projects/Charts/build.xml
+++ b/frameworks/projects/Charts/build.xml
@@ -31,9 +31,18 @@
     <property name="target.name" value="Charts.swc" />
     <property name="target.name.no.version" value="Charts.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Charts.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Charts.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Collections/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Collections/build.xml b/frameworks/projects/Collections/build.xml
index ffc4731..83c53a9 100644
--- a/frameworks/projects/Collections/build.xml
+++ b/frameworks/projects/Collections/build.xml
@@ -31,9 +31,18 @@
     <property name="target.name" value="Collections.swc" />
     <property name="target.name.no.version" value="Collections.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Collections.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Collections.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Core/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/build.xml b/frameworks/projects/Core/build.xml
index 36058ef..292f449 100644
--- a/frameworks/projects/Core/build.xml
+++ b/frameworks/projects/Core/build.xml
@@ -31,9 +31,18 @@
     <property name="target.name" value="Core.swc" />
     <property name="target.name.no.version" value="Core.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Core.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Core.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <ant dir="src/test/flex"/>
     </target>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/CreateJS/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/CreateJS/build.xml b/frameworks/projects/CreateJS/build.xml
index 5d05c69..bf7ecf1 100644
--- a/frameworks/projects/CreateJS/build.xml
+++ b/frameworks/projects/CreateJS/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="CreateJS.swc" />
     <property name="target.name.no.version" value="CreateJS.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of CreateJS.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of CreateJS.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/DragDrop/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/DragDrop/build.xml b/frameworks/projects/DragDrop/build.xml
index c3cfffd..0ec9d55 100644
--- a/frameworks/projects/DragDrop/build.xml
+++ b/frameworks/projects/DragDrop/build.xml
@@ -31,7 +31,16 @@
     <property name="target.name" value="DragDrop.swc" />
     <property name="target.name.no.version" value="DragDrop.swc" />
     
-    <target name="main" depends="clean,compile" description="Full build of DragDrop.swc">
+    <target name="main" depends="clean,js-if-needed,compile" description="Full build of
DragDrop.swc">
+    </target>
+    
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
     
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Effects/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Effects/build.xml b/frameworks/projects/Effects/build.xml
index ad5cde8..004d789 100644
--- a/frameworks/projects/Effects/build.xml
+++ b/frameworks/projects/Effects/build.xml
@@ -31,7 +31,16 @@
     <property name="target.name" value="Effects.swc" />
     <property name="target.name.no.version" value="Effects.swc" />
 
-    <target name="main" depends="clean,compile" description="Full build of Effects.swc">
+    <target name="main" depends="clean,js-if-needed,compile" description="Full build of
Effects.swc">
+    </target>
+
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
 
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Flat/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Flat/build.xml b/frameworks/projects/Flat/build.xml
index bb00438..f84eb8d 100644
--- a/frameworks/projects/Flat/build.xml
+++ b/frameworks/projects/Flat/build.xml
@@ -31,9 +31,18 @@
     <property name="target.name" value="Flat.swc" />
     <property name="target.name.no.version" value="Flat.swc" />
     
-    <target name="main" depends="clean,compile,test" description="Full build of Flat.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Flat.swc">
     </target>
     
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Formatters/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/build.xml b/frameworks/projects/Formatters/build.xml
index 6abc429..3843531 100644
--- a/frameworks/projects/Formatters/build.xml
+++ b/frameworks/projects/Formatters/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="Formatters.swc" />
     <property name="target.name.no.version" value="Formatters.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Formatters.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Formatters.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/GoogleMaps/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/GoogleMaps/build.xml b/frameworks/projects/GoogleMaps/build.xml
index 25ff0ef..a2c2f80 100644
--- a/frameworks/projects/GoogleMaps/build.xml
+++ b/frameworks/projects/GoogleMaps/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="GoogleMaps.swc" />
     <property name="target.name.no.version" value="GoogleMaps.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of GoogleMaps.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of GoogleMaps.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Graphics/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Graphics/build.xml b/frameworks/projects/Graphics/build.xml
index 7c1dd85..6764adf 100644
--- a/frameworks/projects/Graphics/build.xml
+++ b/frameworks/projects/Graphics/build.xml
@@ -30,7 +30,16 @@
     <property name="target.name" value="Graphics.swc" />
     <property name="target.name.no.version" value="Graphics.swc" />
     
-    <target name="main" depends="clean,compile,test" description="Full build of Graphics.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Graphics.swc">
+    </target>
+    
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
     
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/HTML/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/build.xml b/frameworks/projects/HTML/build.xml
index 7f6abcc..dc16577 100644
--- a/frameworks/projects/HTML/build.xml
+++ b/frameworks/projects/HTML/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="HTML.swc" />
     <property name="target.name.no.version" value="HTML.swc" />
     
-    <target name="main" depends="clean,compile,test" description="Full build of HTML.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of HTML.swc">
     </target>
     
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+
     <target name="test" unless="is.jenkins">
         <ant dir="src/test/flex"/>
     </target>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/HTML5/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML5/build.xml b/frameworks/projects/HTML5/build.xml
index 023179d..f41560e 100644
--- a/frameworks/projects/HTML5/build.xml
+++ b/frameworks/projects/HTML5/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="HTML5.swc" />
     <property name="target.name.no.version" value="HTML5.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of HTML5.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of HTML5.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/JQuery/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/build.xml b/frameworks/projects/JQuery/build.xml
index e9dd7ac..c1677f6 100644
--- a/frameworks/projects/JQuery/build.xml
+++ b/frameworks/projects/JQuery/build.xml
@@ -30,7 +30,16 @@
     <property name="target.name" value="JQuery.swc" />
     <property name="target.name.no.version" value="JQuery.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of jQuery.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of jQuery.swc">
+    </target>
+
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
 
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Mobile/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/build.xml b/frameworks/projects/Mobile/build.xml
index 92229da..f2f6a3a 100644
--- a/frameworks/projects/Mobile/build.xml
+++ b/frameworks/projects/Mobile/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="Mobile.swc" />
     <property name="target.name.no.version" value="Mobile.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Mobile.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Mobile.swc">
     </target>
 
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+    
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Network/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/build.xml b/frameworks/projects/Network/build.xml
index 99b1e7c..1032681 100644
--- a/frameworks/projects/Network/build.xml
+++ b/frameworks/projects/Network/build.xml
@@ -30,9 +30,18 @@
     <property name="target.name" value="Network.swc" />
     <property name="target.name.no.version" value="Network.swc" />
     
-    <target name="main" depends="clean,compile" description="Full build of Network.swc">
+    <target name="main" depends="clean,js-if-needed,compile" description="Full build of
Network.swc">
     </target>
     
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
+    </target>
+
     <target name="test" unless="is.jenkins">
         <!-- no tests yet
          <ant dir="as/tests" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Reflection/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Reflection/build.xml b/frameworks/projects/Reflection/build.xml
index 2132bb4..3a75e35 100644
--- a/frameworks/projects/Reflection/build.xml
+++ b/frameworks/projects/Reflection/build.xml
@@ -30,7 +30,16 @@
     <property name="target.name" value="Reflection.swc" />
     <property name="target.name.no.version" value="Reflection.swc" />
     
-    <target name="main" depends="clean,compile,test" description="Full build of Reflection.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Reflection.swc">
+    </target>
+    
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
     
     <target name="test" unless="is.jenkins">

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/817b0e7e/frameworks/projects/Storage/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/Storage/build.xml b/frameworks/projects/Storage/build.xml
index 4e10df5..57b2aa9 100644
--- a/frameworks/projects/Storage/build.xml
+++ b/frameworks/projects/Storage/build.xml
@@ -30,7 +30,16 @@
     <property name="target.name" value="Storage.swc" />
     <property name="target.name.no.version" value="Storage.swc" />
 
-    <target name="main" depends="clean,compile,test" description="Full build of Storage.swc">
+    <target name="main" depends="clean,js-if-needed,compile,test" description="Full build
of Storage.swc">
+    </target>
+
+    <target name="check-js">
+        <uptodate property="js-not-needed" targetfile="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/target/${ant.project.name}JS.swc">
+            <srcfiles dir="${basedir}/src/main/flex" includes="**/**"/>
+        </uptodate>
+    </target>
+    <target name="js-if-needed" depends="check-js" unless="js-not-needed">
+        <ant dir="${FLEXJS_HOME}/frameworks/js/FlexJS/projects/${ant.project.name}JS/"
inheritAll="false" />
     </target>
 
     <target name="test" unless="is.jenkins">


Mime
View raw message