You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/04/22 19:25:20 UTC
[33/35] git commit: [flex-falcon]
[refs/heads/feature/maven-migration-test] - jquery extern swc
jquery extern swc
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/7482e8f6
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/7482e8f6
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/7482e8f6
Branch: refs/heads/feature/maven-migration-test
Commit: 7482e8f6b9d9578931b92a400c7552bdddb1d38b
Parents: ef8c1fd
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 21 19:40:30 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 22 09:02:59 2016 -0700
----------------------------------------------------------------------
externs/jquery/build.xml | 72 ++++++++++++++++++
externs/jquery/compile-config.xml | 101 --------------------------
externs/jquery/jquery-compile-config.xml | 59 ---------------
3 files changed, 72 insertions(+), 160 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7482e8f6/externs/jquery/build.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/build.xml b/externs/jquery/build.xml
new file mode 100644
index 0000000..37a40e1
--- /dev/null
+++ b/externs/jquery/build.xml
@@ -0,0 +1,72 @@
+<?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="jquery" default="main" basedir=".">
+
+ <target name="main" depends="preprocess, externc, postprocess, compc" />
+
+ <!-- we need to insert a line near the beginning of the file to make the
+ compiler happy. -->
+ <target name="preprocess">
+ </target>
+
+ <target name="externc" >
+ <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
+ failonerror="false">
+ <arg value="+flexlib=externs" />
+ <arg value="-debug" />
+ <arg value="-load-config=${basedir}/src/main/config/externc-config.xml" />
+ </java>
+ </target>
+
+ <target name="postprocess" >
+ </target>
+
+ <target name="compc" >
+ <copy file="${basedir}/src/main/config/compile-as-config.xml"
+ todir="${basedir}/target" />
+ <java jar="${basedir}/../../compiler/lib/falcon-compc.jar" fork="true"
+ failonerror="true">
+ <arg value="+flexlib=externs/frameworks" />
+ <arg value="-debug" />
+ <arg value="-external-library-path+=${basedir}/../js/target/js.swc" />
+ <arg value="-load-config=${basedir}/target/compile-as-config.xml" />
+ <arg value="-output=${basedir}/target/jquery-1.9.swc" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete failonerror="false" includeEmptyDirs="true" >
+ <fileset dir="${basedir}/target">
+ <include name="**/**"/>
+ <exclude name="downloads/**"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="wipe">
+ <delete failonerror="false" includeEmptyDirs="true" >
+ <fileset dir="${basedir}/target">
+ <include name="**/**"/>
+ </fileset>
+ </delete>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7482e8f6/externs/jquery/compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/compile-config.xml b/externs/jquery/compile-config.xml
deleted file mode 100644
index c290bdf..0000000
--- a/externs/jquery/compile-config.xml
+++ /dev/null
@@ -1,101 +0,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.
-
--->
-<flex-config>
-
- <compiler>
- <accessible>true</accessible>
-
- <!--
- <external-library-path>
- <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
- <path-element>../../libs/framework.swc</path-element>
- <path-element>../../libs/mx/mx.swc</path-element>
- <path-element>../../libs/osmf.swc</path-element>
- <path-element>../../libs/textLayout.swc</path-element>
- </external-library-path>
-
- <keep-as3-metadata>
- <name>SkinPart</name>
- </keep-as3-metadata>
-
- <mxml>
- <minimum-supported-version>4.0.0</minimum-supported-version>
- </mxml>
-
- <locale/>
-
- <library-path/>
-
- <namespaces>
- <namespace>
- <uri>library://ns.adobe.com/flex/spark</uri>
- <manifest>manifest.xml</manifest>
- </namespace>
- </namespaces>
- -->
-
- <external-library-path>
- <path-element>../js/out/bin/js.swc</path-element>
- </external-library-path>
-
- <source-path>
- <path-element>out/as/classes</path-element>
- <path-element>out/as/constants</path-element>
- <path-element>out/as/interfaces</path-element>
- <path-element>out/as/typedefs</path-element>
- </source-path>
-
- <warn-no-constructor>false</warn-no-constructor>
- </compiler>
-
- <include-sources>
- <path-element>out/as/classes</path-element>
- <path-element>out/as/constants</path-element>
- <path-element>out/as/interfaces</path-element>
- <path-element>out/as/typedefs</path-element>
- </include-sources>
-
- <include-file>
- <name>externs/jquery-1.9.js</name>
- <path>externs/jquery-1.9.js</path>
- </include-file>
-
- <!--
- <include-file>
- <name>defaults.css</name>
- <path>defaults.css</path>
- </include-file>
- <include-file>
- <name>assets/ErrorIndicator.png</name>
- <path>assets/ErrorIndicator.png</path>
- </include-file>
- <include-file>
- <name>assets/RequiredIndicator.png</name>
- <path>assets/RequiredIndicator.png</path>
- </include-file>
-
- <include-namespaces>
- <uri>library://ns.adobe.com/flex/spark</uri>
- </include-namespaces>
-
- <resource-bundle-list>bundles.properties</resource-bundle-list>
-
- <target-player>${playerglobal.version}</target-player>
- -->
-</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7482e8f6/externs/jquery/jquery-compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/jquery-compile-config.xml b/externs/jquery/jquery-compile-config.xml
deleted file mode 100644
index 88fedfc..0000000
--- a/externs/jquery/jquery-compile-config.xml
+++ /dev/null
@@ -1,59 +0,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</name></exclude> 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.
-
--->
-<flex-config>
-
- <compiler>
- <accessible>true</accessible>
-
- <locale/>
-
- <source-path>
- <path-element>src</path-element>
- </source-path>
-
- <warn-no-constructor>false</warn-no-constructor>
- </compiler>
-
- <external>
- <path-element>externs/jquery-1.9.js</path-element>
- </external>
-
- <as-root>out/as</as-root>
-
- <!-- JQuery -->
- <class-to-function><class>$</class></class-to-function>
-
- <exclude><class>jQuery</class><name>is</name></exclude>
- <exclude><class>jQuery</class><name>promise</name></exclude>
- <exclude><class>jQuery</class><name>getJSON</name></exclude>
- <exclude><class>jQuery</class><name>ajax</name></exclude>
- <exclude><class>jQuery</class><name>when</name></exclude>
- <exclude><class>jQuery</class><name>post</name></exclude>
- <exclude><class>jQuery</class><name>getScript</name></exclude>
- <exclude><class>jQuery</class><name>Callbacks</name></exclude>
-
- <class-exclude><class>Deferred</class></class-exclude>
- <class-exclude><class>jQuery.deferred</class></class-exclude>
- <class-exclude><class>jQuery.Event</class></class-exclude>
- <class-exclude><class>jQuery.Deferred</class></class-exclude>
- <class-exclude><class>$.Event</class></class-exclude>
- <class-exclude><class>$.Deferred</class></class-exclude>
- <class-exclude><class>$.deferred</class></class-exclude>
-
-</flex-config>