Repository: flex-falcon
Updated Branches:
  refs/heads/develop 3f12980ed -> fca1b860f


Generates jquery-1.9.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/fca1b860
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/fca1b860
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/fca1b860

Branch: refs/heads/develop
Commit: fca1b860f235cdf3077d21c700798bb02beaa01f
Parents: 3f12980
Author: Frédéric THOMAS <[email protected]>
Authored: Sat Jun 20 23:49:36 2015 +0100
Committer: Frédéric THOMAS <[email protected]>
Committed: Sat Jun 20 23:49:36 2015 +0100

----------------------------------------------------------------------
 .gitignore                                      |   3 +-
 build.xml                                       |  23 ++-
 closure-compiler/compile-config.xml             |  93 ----------
 closure-compiler/js-compile-config.xml          | 171 -------------------
 closure-compiler/missing.js                     |  97 -----------
 .../codegen/externals/ExternalsTestUtils.java   |   2 +-
 compiler.jx/downloads.xml                       |   8 +-
 .../compiler/clients/ExternCConfiguration.java  |   8 +
 externs/jquery/compile-config.xml               |  96 +++++++++++
 externs/jquery/jquery-compile-config.xml        |  59 +++++++
 externs/js/compile-config.xml                   |  93 ++++++++++
 externs/js/js-compile-config.xml                | 171 +++++++++++++++++++
 externs/js/missing.js                           |  97 +++++++++++
 13 files changed, 552 insertions(+), 369 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index a5d712e..7be0a50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,7 +28,8 @@ rat.report
 swfutils/
 
 # files copied from google closure compiler
-closure-compiler/externs
+externs/js/externs
+externs/jquery/externs
 
 # debugger output folders
 debugger/bin/

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 336aba8..27ea53e 100644
--- a/build.xml
+++ b/build.xml
@@ -533,14 +533,31 @@
             failonerror="false">
             <arg value="+flexlib=${env.ASJS_HOME}/frameworks" />
             <arg value="-debug" />
-            <arg value="-load-config=closure-compiler/js-compile-config.xml" />
+            <arg value="-load-config=externs/js/js-compile-config.xml" />
         </java>
         <java 
jar="${basedir}/compiler/generated/dist/sdk/lib/falcon-compc.jar" fork="true"
             failonerror="true">
             <arg value="+flexlib=${env.ASJS_HOME}/frameworks" />
             <arg value="-debug" />
-            <arg 
value="-load-config=${basedir}/closure-compiler/compile-config.xml" />
-            <arg value="-output=${basedir}/closure-compiler/js.swc" />
+            <arg value="-load-config=${basedir}/externs/js/compile-config.xml" 
/>
+            <arg value="-output=${basedir}/externs/js/js.swc" />
+        </java>
+    </target>
+
+    <target name="externc.jquery.swc" >
+        <echo>${env.ASJS_HOME}</echo>
+        <java jar="${basedir}/compiler.jx/lib/externc.jar" fork="true"
+              failonerror="false">
+            <arg value="+flexlib=${env.ASJS_HOME}/frameworks" />
+            <arg value="-debug" />
+            <arg 
value="-load-config=${basedir}/externs/jquery/jquery-compile-config.xml" />
+        </java>
+        <java 
jar="${basedir}/compiler/generated/dist/sdk/lib/falcon-compc.jar" fork="true"
+              failonerror="true">
+            <arg value="+flexlib=${env.ASJS_HOME}/frameworks" />
+            <arg value="-debug" />
+            <arg 
value="-load-config=${basedir}/externs/jquery/compile-config.xml" />
+            <arg value="-output=${basedir}/externs/jquery/jquery-1.9.swc" />
         </java>
     </target>
     

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/closure-compiler/compile-config.xml
----------------------------------------------------------------------
diff --git a/closure-compiler/compile-config.xml 
b/closure-compiler/compile-config.xml
deleted file mode 100644
index ff69260..0000000
--- a/closure-compiler/compile-config.xml
+++ /dev/null
@@ -1,93 +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>
-        -->
-        <source-path>
-            <path-element>out/as/classes</path-element>
-            <path-element>out/as/constants</path-element>
-            <path-element>out/as/functions</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/functions</path-element>
-        <path-element>out/as/interfaces</path-element>
-        <path-element>out/as/typedefs</path-element>
-    </include-sources>
-
-    <!--
-    <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/fca1b860/closure-compiler/js-compile-config.xml
----------------------------------------------------------------------
diff --git a/closure-compiler/js-compile-config.xml 
b/closure-compiler/js-compile-config.xml
deleted file mode 100644
index 1fc8387..0000000
--- a/closure-compiler/js-compile-config.xml
+++ /dev/null
@@ -1,171 +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>
-        
-        <!--
-        <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>
-        -->
-        
-        <source-path>
-            <path-element>src</path-element>
-        </source-path>
-        
-        <warn-no-constructor>false</warn-no-constructor>
-    </compiler>
-    
-    <external>
-        <path-element>missing.js</path-element>
-        <path-element>externs/es3.js</path-element>
-        <path-element>externs/es5.js</path-element>
-        <path-element>externs/es6.js</path-element>
-        <path-element>externs/w3c_anim_timing.js</path-element>
-        <path-element>externs/w3c_audio.js</path-element>
-        <path-element>externs/w3c_batterystatus.js</path-element>
-        <path-element>externs/w3c_css.js</path-element>
-        <path-element>externs/w3c_css3d.js</path-element>
-        <path-element>externs/w3c_device_sensor_event.js</path-element>
-        <path-element>externs/w3c_dom1.js</path-element>
-        <path-element>externs/w3c_dom2.js</path-element>
-        <path-element>externs/w3c_dom3.js</path-element>
-        <path-element>externs/w3c_elementtraversal.js</path-element>
-        <path-element>externs/w3c_encoding.js</path-element>
-        <path-element>externs/w3c_event.js</path-element>
-        <path-element>externs/w3c_event3.js</path-element>
-        <path-element>externs/w3c_geolocation.js</path-element>
-        <path-element>externs/w3c_indexeddb.js</path-element>
-        <path-element>externs/w3c_navigation_timing.js</path-element>
-        <path-element>externs/w3c_range.js</path-element>
-        <path-element>externs/w3c_rtc.js</path-element>
-        <path-element>externs/w3c_selectors.js</path-element>
-        <!-- path-element>externs/w3c_serviceworker.js</path-element> -->
-        <!-- path-element>externs/w3c_webcrypto.js</path-element> -->
-        <path-element>externs/w3c_xml.js</path-element>
-        
-        <!-- path-element>externs/fetchapi</path-element> -->
-        
-        <path-element>externs/window.js</path-element>
-        
-        <path-element>externs/ie_dom.js</path-element>
-        <path-element>externs/gecko_dom.js</path-element>
-        
-        <path-element>externs/webkit_css.js</path-element>
-        <path-element>externs/webkit_dom.js</path-element>
-        <path-element>externs/webkit_event.js</path-element>
-        <!-- path-element>externs/webkit_notifications.js</path-element> -->
-        
-        <path-element>externs/iphone.js</path-element>
-        <path-element>externs/chrome.js</path-element>
-        <path-element>externs/flash.js</path-element>
-        
-        <path-element>externs/page_visibility.js</path-element>
-        <path-element>externs/fileapi.js</path-element>
-        <path-element>externs/html5.js</path-element>
-        
-        <path-element>externs/webgl.js</path-element>
-        <path-element>externs/webstorage.js</path-element>
-        
-        <path-element>externs/svg.js</path-element>
-    </external>
-    
-    <as-root>out/as</as-root>
-    
-    <field-exclude>
-        <class>Window</class>
-        <field>focus</field>
-    </field-exclude>
-
-    <class-exclude>
-        <class>controlRange</class>
-    </class-exclude>
-    
-    <exclude>
-        <class>Array</class>
-        <name>toSource</name>
-    </exclude>
-    <exclude>
-        <class>Date</class>
-        <name>valueOf</name>
-    </exclude>
-    <exclude>
-        <class>String</class>
-        <name>valueOf</name>
-    </exclude>
-    <exclude><class>FontFaceSet</class><name>delete</name></exclude>
-    
-    <exclude><class>CSSStyleDeclaration</class><name>cssText</name></exclude>
-    <exclude><class>CSSStyleRule</class><name>style</name></exclude>
-    <exclude><class>CSSFontFaceRule</class><name>style</name></exclude>
-    <exclude><class>CSSPageRule</class><name>style</name></exclude>
-    
-    <exclude><class>Generator</class><name>throw</name></exclude>
-    <exclude><class>Generator</class><name>return</name></exclude>
-    <exclude><class>HTMLMenuItemElement</class><name>default</name></exclude>
-    <exclude><class>MessageEvent</class><name>data</name></exclude><!-- TODO 
returns T -->
-    
<exclude><class>MessageEvent</class><name>initMessageEventNS</name></exclude> 
<!-- TODO param T -->
-    
<exclude><class>MessageEvent</class><name>initMessageEvent</name></exclude> 
<!-- TODO param T -->
-    <exclude><class>MessageEvent</class><name>default</name></exclude>
-    <exclude><class>Object</class><name>is</name></exclude>
-    <exclude><class>Promise</class><name>catch</name></exclude>
-    
-    <exclude><class>IDBCursor</class><name>continue</name></exclude>
-    <exclude><class>IDBCursor</class><name>delete</name></exclude>
-    <exclude><class>IDBObjectStore</class><name>delete</name></exclude>
-    
-    <!-- TODO method treated like field -->
-    <field-exclude><class>Iterator</class><field>next</field></field-exclude>
-    <exclude><class>Generator</class><name>next</name></exclude>
-    <exclude><class>LinkStyle</class><name>sheet</name></exclude>
-    
-    <!-- SVG -->
-    <exclude><class>SVGStylable</class><name>className</name></exclude>
-    <exclude><class>SVGStylable</class><name>style</name></exclude>
-    
<exclude><class>SVGLocatable</class><name>farthestViewportElement</name></exclude>
-    
<exclude><class>SVGLocatable</class><name>nearestViewportElement</name></exclude>
-
-</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/closure-compiler/missing.js
----------------------------------------------------------------------
diff --git a/closure-compiler/missing.js b/closure-compiler/missing.js
deleted file mode 100644
index 5833dd4..0000000
--- a/closure-compiler/missing.js
+++ /dev/null
@@ -1,97 +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.
- *
- */
-
- 
-// webkit_notifications
-/**
- * @constructor
- */
-function ExtendableEvent() {}
-
-// HACK @enum page_visibility
-/**
- * @constructor
- */
-function VisibilityState(description) {}
-
-
-// chrome.js
-/**
- * @constructor
- */
-function HTMLEmbedElement() {};
-
-/**
- * @type {!Window}
- * @const
- */
-var window;
-
-/**
- * @type {!HTMLDocument}
- */
-Window.prototype.document;
-
-/**
- * @constructor
- */
-function Promise() {}
-
-/**
- * @constructor
- */
-function FontFaceSetLoadStatus() {}
-
-/**
- * @constructor
- */
-function FontFaceLoadStatus() {}
-
-/**
- * @constructor
- */
-function Navigator() {}
-
-
-/**
- * @constructor
- */
-function Screen() {}
-
-/**
- * @constructor
- */
-function uint() {}
-
-/**
- * @constructor
- */
-function int() {}
-
-// gecko
-
-/**
- * @constructor
- */
-function History() {}
-
-/**
- * @constructor
- */
-function Location() {}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
----------------------------------------------------------------------
diff --git 
a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
 
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
index ea3b908..da020e7 100644
--- 
a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
+++ 
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/externals/ExternalsTestUtils.java
@@ -35,7 +35,7 @@ public class ExternalsTestUtils
             "test-files/externals/missing.js"));
 
     public static File EXTERNAL_JS_DIR = FilenameNormalization.normalize(new 
File(
-            "../closure-compiler/externs"));
+            "../externs/js/externs"));
 
     public static File AS_ROOT_DIR = new File(TEMP_DIR, "externals/as");
 

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/compiler.jx/downloads.xml
----------------------------------------------------------------------
diff --git a/compiler.jx/downloads.xml b/compiler.jx/downloads.xml
index 3e8e97b..ffbb861 100644
--- a/compiler.jx/downloads.xml
+++ b/compiler.jx/downloads.xml
@@ -240,9 +240,11 @@
                <include name="externs.zip"/>
            </patternset>
     </unjar>
-    <mkdir dir="${basedir}/../closure-compiler/externs" />
-    <unzip src="${download.dir}/temp/externs/externs.zip" 
dest="${basedir}/../closure-compiler/externs" />
-    <get src="https://closureidl.googlecode.com/files/svg.js"; 
dest="${basedir}/../closure-compiler/externs/svg.js"/>
+    <mkdir dir="${basedir}/../externs/js/externs" />
+    <mkdir dir="${basedir}/../externs/jquery/externs" />
+    <unzip src="${download.dir}/temp/externs/externs.zip" 
dest="${basedir}/../externs/js/externs" />
+    <get src="https://closureidl.googlecode.com/files/svg.js"; 
dest="${basedir}/../externs/js/externs/svg.js"/>
+    <get 
src="https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/jquery-1.9.js";
 dest="${basedir}/../externs/jquery/externs/jquery-1.9.js"/>
   </target>
 
   <target name="download-dependency-jar" if="project.download.jar" 
description="Downloads a jar to the lib directory.">

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/compiler.jx/src/org/apache/flex/compiler/clients/ExternCConfiguration.java
----------------------------------------------------------------------
diff --git 
a/compiler.jx/src/org/apache/flex/compiler/clients/ExternCConfiguration.java 
b/compiler.jx/src/org/apache/flex/compiler/clients/ExternCConfiguration.java
index 0a620eb..1710958 100644
--- a/compiler.jx/src/org/apache/flex/compiler/clients/ExternCConfiguration.java
+++ b/compiler.jx/src/org/apache/flex/compiler/clients/ExternCConfiguration.java
@@ -135,6 +135,14 @@ public class ExternCConfiguration extends Configuration
         addExternal(new File(FilenameNormalization.normalize(externalFile)));
     }
 
+    @Config(allowMultiple = true)
+    @Mapping("class-to-function")
+    @Arguments(Arguments.CLASS)
+    public void setClassToFunctions(ConfigurationValue cfgval, List<String> 
values) throws IncorrectArgumentCount
+    {
+        addClassToFunction(values.get(0));
+    }
+
     @Config(allowMultiple = true, isPath = true)
     @Mapping("external")
     @Arguments(Arguments.PATH_ELEMENT)

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/externs/jquery/compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/compile-config.xml 
b/externs/jquery/compile-config.xml
new file mode 100644
index 0000000..f75cd56
--- /dev/null
+++ b/externs/jquery/compile-config.xml
@@ -0,0 +1,96 @@
+<!--
+
+  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/js.swc</path-element>
+        </external-library-path>
+               
+        <source-path>
+            <path-element>out/as/classes</path-element>
+            <path-element>out/as/interfaces</path-element>
+            <path-element>out/as/typedefs</path-element>
+            <path-element>out/as/functions</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/interfaces</path-element>
+        <path-element>out/as/typedefs</path-element>
+            <path-element>out/as/functions</path-element>
+    </include-sources>
+
+    <!--
+    <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/fca1b860/externs/jquery/jquery-compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/jquery/jquery-compile-config.xml 
b/externs/jquery/jquery-compile-config.xml
new file mode 100644
index 0000000..88fedfc
--- /dev/null
+++ b/externs/jquery/jquery-compile-config.xml
@@ -0,0 +1,59 @@
+<!--
+
+  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>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/externs/js/compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/js/compile-config.xml b/externs/js/compile-config.xml
new file mode 100644
index 0000000..ff69260
--- /dev/null
+++ b/externs/js/compile-config.xml
@@ -0,0 +1,93 @@
+<!--
+
+  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>
+        -->
+        <source-path>
+            <path-element>out/as/classes</path-element>
+            <path-element>out/as/constants</path-element>
+            <path-element>out/as/functions</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/functions</path-element>
+        <path-element>out/as/interfaces</path-element>
+        <path-element>out/as/typedefs</path-element>
+    </include-sources>
+
+    <!--
+    <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/fca1b860/externs/js/js-compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/js/js-compile-config.xml b/externs/js/js-compile-config.xml
new file mode 100644
index 0000000..1fc8387
--- /dev/null
+++ b/externs/js/js-compile-config.xml
@@ -0,0 +1,171 @@
+<!--
+
+  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>
+        
+        <!--
+        <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>
+        -->
+        
+        <source-path>
+            <path-element>src</path-element>
+        </source-path>
+        
+        <warn-no-constructor>false</warn-no-constructor>
+    </compiler>
+    
+    <external>
+        <path-element>missing.js</path-element>
+        <path-element>externs/es3.js</path-element>
+        <path-element>externs/es5.js</path-element>
+        <path-element>externs/es6.js</path-element>
+        <path-element>externs/w3c_anim_timing.js</path-element>
+        <path-element>externs/w3c_audio.js</path-element>
+        <path-element>externs/w3c_batterystatus.js</path-element>
+        <path-element>externs/w3c_css.js</path-element>
+        <path-element>externs/w3c_css3d.js</path-element>
+        <path-element>externs/w3c_device_sensor_event.js</path-element>
+        <path-element>externs/w3c_dom1.js</path-element>
+        <path-element>externs/w3c_dom2.js</path-element>
+        <path-element>externs/w3c_dom3.js</path-element>
+        <path-element>externs/w3c_elementtraversal.js</path-element>
+        <path-element>externs/w3c_encoding.js</path-element>
+        <path-element>externs/w3c_event.js</path-element>
+        <path-element>externs/w3c_event3.js</path-element>
+        <path-element>externs/w3c_geolocation.js</path-element>
+        <path-element>externs/w3c_indexeddb.js</path-element>
+        <path-element>externs/w3c_navigation_timing.js</path-element>
+        <path-element>externs/w3c_range.js</path-element>
+        <path-element>externs/w3c_rtc.js</path-element>
+        <path-element>externs/w3c_selectors.js</path-element>
+        <!-- path-element>externs/w3c_serviceworker.js</path-element> -->
+        <!-- path-element>externs/w3c_webcrypto.js</path-element> -->
+        <path-element>externs/w3c_xml.js</path-element>
+        
+        <!-- path-element>externs/fetchapi</path-element> -->
+        
+        <path-element>externs/window.js</path-element>
+        
+        <path-element>externs/ie_dom.js</path-element>
+        <path-element>externs/gecko_dom.js</path-element>
+        
+        <path-element>externs/webkit_css.js</path-element>
+        <path-element>externs/webkit_dom.js</path-element>
+        <path-element>externs/webkit_event.js</path-element>
+        <!-- path-element>externs/webkit_notifications.js</path-element> -->
+        
+        <path-element>externs/iphone.js</path-element>
+        <path-element>externs/chrome.js</path-element>
+        <path-element>externs/flash.js</path-element>
+        
+        <path-element>externs/page_visibility.js</path-element>
+        <path-element>externs/fileapi.js</path-element>
+        <path-element>externs/html5.js</path-element>
+        
+        <path-element>externs/webgl.js</path-element>
+        <path-element>externs/webstorage.js</path-element>
+        
+        <path-element>externs/svg.js</path-element>
+    </external>
+    
+    <as-root>out/as</as-root>
+    
+    <field-exclude>
+        <class>Window</class>
+        <field>focus</field>
+    </field-exclude>
+
+    <class-exclude>
+        <class>controlRange</class>
+    </class-exclude>
+    
+    <exclude>
+        <class>Array</class>
+        <name>toSource</name>
+    </exclude>
+    <exclude>
+        <class>Date</class>
+        <name>valueOf</name>
+    </exclude>
+    <exclude>
+        <class>String</class>
+        <name>valueOf</name>
+    </exclude>
+    <exclude><class>FontFaceSet</class><name>delete</name></exclude>
+    
+    <exclude><class>CSSStyleDeclaration</class><name>cssText</name></exclude>
+    <exclude><class>CSSStyleRule</class><name>style</name></exclude>
+    <exclude><class>CSSFontFaceRule</class><name>style</name></exclude>
+    <exclude><class>CSSPageRule</class><name>style</name></exclude>
+    
+    <exclude><class>Generator</class><name>throw</name></exclude>
+    <exclude><class>Generator</class><name>return</name></exclude>
+    <exclude><class>HTMLMenuItemElement</class><name>default</name></exclude>
+    <exclude><class>MessageEvent</class><name>data</name></exclude><!-- TODO 
returns T -->
+    
<exclude><class>MessageEvent</class><name>initMessageEventNS</name></exclude> 
<!-- TODO param T -->
+    
<exclude><class>MessageEvent</class><name>initMessageEvent</name></exclude> 
<!-- TODO param T -->
+    <exclude><class>MessageEvent</class><name>default</name></exclude>
+    <exclude><class>Object</class><name>is</name></exclude>
+    <exclude><class>Promise</class><name>catch</name></exclude>
+    
+    <exclude><class>IDBCursor</class><name>continue</name></exclude>
+    <exclude><class>IDBCursor</class><name>delete</name></exclude>
+    <exclude><class>IDBObjectStore</class><name>delete</name></exclude>
+    
+    <!-- TODO method treated like field -->
+    <field-exclude><class>Iterator</class><field>next</field></field-exclude>
+    <exclude><class>Generator</class><name>next</name></exclude>
+    <exclude><class>LinkStyle</class><name>sheet</name></exclude>
+    
+    <!-- SVG -->
+    <exclude><class>SVGStylable</class><name>className</name></exclude>
+    <exclude><class>SVGStylable</class><name>style</name></exclude>
+    
<exclude><class>SVGLocatable</class><name>farthestViewportElement</name></exclude>
+    
<exclude><class>SVGLocatable</class><name>nearestViewportElement</name></exclude>
+
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fca1b860/externs/js/missing.js
----------------------------------------------------------------------
diff --git a/externs/js/missing.js b/externs/js/missing.js
new file mode 100644
index 0000000..5833dd4
--- /dev/null
+++ b/externs/js/missing.js
@@ -0,0 +1,97 @@
+/*
+ *
+ *  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.
+ *
+ */
+
+ 
+// webkit_notifications
+/**
+ * @constructor
+ */
+function ExtendableEvent() {}
+
+// HACK @enum page_visibility
+/**
+ * @constructor
+ */
+function VisibilityState(description) {}
+
+
+// chrome.js
+/**
+ * @constructor
+ */
+function HTMLEmbedElement() {};
+
+/**
+ * @type {!Window}
+ * @const
+ */
+var window;
+
+/**
+ * @type {!HTMLDocument}
+ */
+Window.prototype.document;
+
+/**
+ * @constructor
+ */
+function Promise() {}
+
+/**
+ * @constructor
+ */
+function FontFaceSetLoadStatus() {}
+
+/**
+ * @constructor
+ */
+function FontFaceLoadStatus() {}
+
+/**
+ * @constructor
+ */
+function Navigator() {}
+
+
+/**
+ * @constructor
+ */
+function Screen() {}
+
+/**
+ * @constructor
+ */
+function uint() {}
+
+/**
+ * @constructor
+ */
+function int() {}
+
+// gecko
+
+/**
+ * @constructor
+ */
+function History() {}
+
+/**
+ * @constructor
+ */
+function Location() {}
\ No newline at end of file

Reply via email to