flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [09/50] [abbrv] git commit: [flex-asjs] [refs/heads/spark] - strip down GCL to only the files we need
Date Wed, 04 May 2016 18:13:55 GMT
strip down GCL to only the files we need


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

Branch: refs/heads/spark
Commit: 3f065a274a399801c36c49b82fc4f8b73c89f4bf
Parents: 667dd46
Author: Alex Harui <aharui@apache.org>
Authored: Tue Apr 12 23:25:09 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Apr 12 23:47:06 2016 -0700

----------------------------------------------------------------------
 frameworks/build.xml     |  1 +
 frameworks/downloads.xml | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3f065a27/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index c6c8a5e..ea42384 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -159,6 +159,7 @@
             <exclude name="swfobject/index.template.html" />
             <exclude name="swfobject/expressInstall.swf" />
             <exclude name="swfobject/swfobject.js" />
+            <exclude name="swfobject/history/**" />
         </delete>
     </target>
     

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3f065a27/frameworks/downloads.xml
----------------------------------------------------------------------
diff --git a/frameworks/downloads.xml b/frameworks/downloads.xml
index 7fc12b1..0b3909a 100644
--- a/frameworks/downloads.xml
+++ b/frameworks/downloads.xml
@@ -75,6 +75,7 @@
             <fileset dir="${FLEXJS_HOME}/templates/swfobject">
                 <include name="**/**"/>
                 <exclude name="index.template.html"/>
+                <exclude name="history/**"/>
             </fileset>
         </delete>
     </target>
@@ -160,8 +161,45 @@
     	<unzip src="${download.dir}/google-closure-library-master.zip" dest="${FLEXJS_HOME}/js/lib/google/closure-library">
     		<cutdirsmapper dirs="1" />
     	</unzip>
+        <property name="GOOG_DIR" value="${FLEXJS_HOME}/js/lib/google/closure-library"
/>
+        <antcall target="subset-goog" />
     </target>
 	
+    <target name="subset-goog" >
+        <property name="GOOG_DIR" value="${GOOG_HOME}" />
+        <delete failonerror="false">
+            <!-- we only need base.js, eventtarget.js and their dependencies -->
+            <fileset dir="${GOOG_DIR}">
+                <include name="**"/>
+                <exclude name="closure/goog/array/array.js"/>
+                <exclude name="closure/goog/asserts/asserts.js"/>
+                <exclude name="closure/goog/base.js"/>
+                <exclude name="closure/goog/debug/entrypointregistry.js"/>
+                <exclude name="closure/goog/debug/error.js"/>
+                <exclude name="closure/goog/disposable/disposable.js"/>
+                <exclude name="closure/goog/disposable/idisposable.js"/>
+                <exclude name="closure/goog/dom/nodetype.js"/>
+                <exclude name="closure/goog/events/browserevent.js"/>
+                <exclude name="closure/goog/events/browserfeature.js"/>
+                <exclude name="closure/goog/events/event.js"/>
+                <exclude name="closure/goog/events/eventid.js"/>
+                <exclude name="closure/goog/events/events.js"/>
+                <exclude name="closure/goog/events/eventtarget.js"/>
+                <exclude name="closure/goog/events/eventtype.js"/>
+                <exclude name="closure/goog/events/listenable.js"/>
+                <exclude name="closure/goog/events/listener.js"/>
+                <exclude name="closure/goog/events/listenermap.js"/>
+                <exclude name="closure/goog/labs/useragent/browser.js"/>
+                <exclude name="closure/goog/labs/useragent/engine.js"/>
+                <exclude name="closure/goog/labs/useragent/platform.js"/>
+                <exclude name="closure/goog/labs/useragent/util.js"/>
+                <exclude name="closure/goog/object/object.js"/>
+                <exclude name="closure/goog/reflect/reflect.js"/>
+                <exclude name="closure/goog/string/string.js"/>
+                <exclude name="closure/goog/useragent/useragent.js"/>
+            </fileset>
+        </delete>
+    </target>
     <target name="gcl-clean" description="Deletes Google Closure Library">
     	<echo message="Deleting Google Closure Library"/>
         <delete dir="${FLEXJS_HOME}/js/lib" failonerror="false" />


Mime
View raw message