Merge tag 'apache-royale-0.9.6'
diff --git a/GCL/build.xml b/GCL/build.xml
index 9ef1708..cbb1986 100644
--- a/GCL/build.xml
+++ b/GCL/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<!-- we need to insert a line near the beginning of the file to make the
@@ -96,9 +101,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/GCL.swc" />
</java>
</target>
diff --git a/GCL/pom.xml b/GCL/pom.xml
index c417c8a..8ebfcd2 100644
--- a/GCL/pom.xml
+++ b/GCL/pom.xml
@@ -1,69 +1,69 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-gcl</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: GCL</name>
-
- <build>
- <sourceDirectory>src/main/royale</sourceDirectory>
- <plugins>
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-gcl</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: GCL</name>
+
+ <build>
+ <sourceDirectory>src/main/royale</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/NOTICE b/NOTICE
index e5fd060..67ea431 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
Apache Royale Typedefs
-Copyright 2018 The Apache Software Foundation
+Copyright 2019 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
diff --git a/README b/README
index b5d739c..38f9f4e 100644
--- a/README
+++ b/README
@@ -128,7 +128,7 @@
external-library-path when compiling a Royale application.
The typedefs libraries are packaged into a Royale SDK and are set on the
-external-librar-path by various config.xml files in a Royale SDK.
+external-library-path by various config.xml files in a Royale SDK.
Thanks for using Apache Royale. Enjoy!
diff --git a/ace/build.xml b/ace/build.xml
index 695c9f5..e9d4b5c 100644
--- a/ace/build.xml
+++ b/ace/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<target name="preprocess" depends="download"></target>
@@ -115,9 +120,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/ace-1.2.3.swc" />
</java>
</target>
diff --git a/build.properties b/build.properties
new file mode 100644
index 0000000..7a4f130
--- /dev/null
+++ b/build.properties
@@ -0,0 +1,24 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+
+##used by Ant scripts
+release.version=0.9.6
+##used by release jobs on Jenkins
+releaseversion=0.9.6
+developbranchname=release_practice
diff --git a/build.xml b/build.xml
index a3d8e45..d128d37 100644
--- a/build.xml
+++ b/build.xml
@@ -48,6 +48,10 @@
<ant dir="google_maps" target="wipe"/>
<ant dir="node" target="wipe"/>
<ant dir="ace" target="wipe"/>
+ <delete dir="${basedir}" failonerror="false">
+ <include name="**/*.log"/>
+ <include name="**/*.mdmp"/>
+ </delete>
</target>
<target name="main" description="Build everything">
diff --git a/cordova/build.xml b/cordova/build.xml
index 33efde2..2939fff 100644
--- a/cordova/build.xml
+++ b/cordova/build.xml
@@ -79,6 +79,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<!-- we need to insert a line near the beginning of the file to make the
@@ -104,9 +109,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/cordova.swc" />
</java>
</target>
diff --git a/cordova/pom.xml b/cordova/pom.xml
index dccb841..dec9d16 100644
--- a/cordova/pom.xml
+++ b/cordova/pom.xml
@@ -1,86 +1,86 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-cordova</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: Cordova</name>
-
- <properties>
- <cordova.version>4.11</cordova.version>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <externcInput>
- <fileSet>
- <directory>${project.basedir}/src/main/javascript</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- </externcInput>
- <includeFiles>
- <include-file>
- <name>externs/cordova_file_plugin-4-11.js</name>
- <path>../src/main/javascript/cordova_file_plugin-4-11.js</path>
- </include-file>
- </includeFiles>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-cordova</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: Cordova</name>
+
+ <properties>
+ <cordova.version>4.11</cordova.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <externcInput>
+ <fileSet>
+ <directory>${project.basedir}/src/main/javascript</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ </externcInput>
+ <includeFiles>
+ <include-file>
+ <name>externs/cordova_file_plugin-4-11.js</name>
+ <path>../src/main/javascript/cordova_file_plugin-4-11.js</path>
+ </include-file>
+ </includeFiles>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/createjs/build.xml b/createjs/build.xml
index f42880c..aa6fc34 100644
--- a/createjs/build.xml
+++ b/createjs/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="externc, compc" />
<target name="download" >
@@ -572,9 +577,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/createjs.swc" />
</java>
</target>
diff --git a/createjs/pom.xml b/createjs/pom.xml
index 7902efe..b4dc326 100644
--- a/createjs/pom.xml
+++ b/createjs/pom.xml
@@ -1,249 +1,249 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-createjs</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: CreateJS</name>
-
- <properties>
- <createjs.version>0.8.0</createjs.version>
- <tweenjs.version>0.6.2</tweenjs.version>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <externcInput>
- <fileSet>
- <directory>${project.basedir}/src/main/javascript</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- </externcInput>
- <externcConfig>
- <class-excludes>
- <class-exclude>
- <className>MovieClipPlugin</className>
- </class-exclude>
- <class-exclude>
- <className>createjs.Text.V_OFFSETS</className>
- </class-exclude>
- <class-exclude>
- <className>createjs.Text.H_OFFSETS</className>
- </class-exclude>
- <class-exclude>
- <className>createjs.Graphics.BASE_64</className>
- </class-exclude>
- </class-excludes>
- </externcConfig>
- <includeFiles>
- <include-file>
- <name>externs/missing.js</name>
- <path>../src/main/javascript/missing.js</path>
- </include-file>
- <include-file>
- <name>externs/createjs.js</name>
- <path>../src/main/javascript/createjs.js</path>
- </include-file>
- <!--
- <include-file>
- <name>externs/AlphaMapFilter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMapFilter.js</path>
- </include-file>
- <include-file>
- <name>externs/AlphaMaskFilter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMaskFilter.js</path>
- </include-file>
- <include-file>
- <name>externs/BlurFilter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/BlurFilter.js</path>
- </include-file>
- <include-file>
- <name>externs/ColorFilter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorFilter.js</path>
- </include-file>
- <include-file>
- <name>externs/ColorMatrix.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrix.js</path>
- </include-file>
- <include-file>
- <name>externs/ColorMatrixFilter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrixFilter.js</path>
- </include-file>
- <include-file>
- <name>externs/Filter.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/filters/Filter.js</path>
- </include-file>
- <include-file>
- <name>externs/Bitmap.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js</path>
- </include-file>
- <include-file>
- <name>externs/BitmapText.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js</path>
- </include-file>
- <include-file>
- <name>externs/Container.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Container.js</path>
- </include-file>
- <include-file>
- <name>externs/DisplayObject.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/DisplayObject.js</path>
- </include-file>
- <include-file>
- <name>externs/DOMElement.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/DOMElement.js</path>
- </include-file>
- <include-file>
- <name>externs/Graphics.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Graphics.js</path>
- </include-file>
- <include-file>
- <name>externs/MovieClip.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/MovieClip.js</path>
- </include-file>
- <include-file>
- <name>externs/Shadow.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shadow.js</path>
- </include-file>
- <include-file>
- <name>externs/Shape.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shape.js</path>
- </include-file>
- <include-file>
- <name>externs/Sprite.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Sprite.js</path>
- </include-file>
- <include-file>
- <name>externs/SpriteContainer.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteContainer.js</path>
- </include-file>
- <include-file>
- <name>externs/SpriteSheet.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteSheet.js</path>
- </include-file>
- <include-file>
- <name>externs/SpriteStage.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteStage.js</path>
- </include-file>
- <include-file>
- <name>externs/Stage.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Stage.js</path>
- </include-file>
- <include-file>
- <name>externs/Text.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/display/Text.js</path>
- </include-file>
- <include-file>
- <name>externs/ButtonHelper.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/ui/ButtonHelper.js</path>
- </include-file>
- <include-file>
- <name>externs/DisplayProps.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/geom/DisplayProps.js</path>
- </include-file>
- <include-file>
- <name>externs/Matrix2D.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Matrix2D.js</path>
- </include-file>
- <include-file>
- <name>externs/Point.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Point.js</path>
- </include-file>
- <include-file>
- <name>externs/Rectangle.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Rectangle.js</path>
- </include-file>
- <include-file>
- <name>externs/Ease.js</name>
- <path>downloads/TweenJS-0.6.2/src/tweenjs/Ease.js</path>
- </include-file>
- <include-file>
- <name>externs/Tween.js</name>
- <path>downloads/TweenJS-0.6.2/src/tweenjs/Tween.js</path>
- </include-file>
- <include-file>
- <name>externs/Timeline.js</name>
- <path>downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js</path>
- </include-file>
- <include-file>
- <name>externs/Event.js</name>
- <path>downloads/EaselJS-0.8.0/src/createjs/events/Event.js</path>
- </include-file>
- <include-file>
- <name>externs/EventDispatcher.js</name>
- <path>downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js</path>
- </include-file>
- <include-file>
- <name>externs/MouseEvent.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/events/MouseEvent.js</path>
- </include-file>
- <include-file>
- <name>externs/SpriteSheetBuilder.js</name>
- <path>downloads/EaselJS-0.8.0/src/easeljs/utils/SpriteSheetBuilder.js</path>
- </include-file>
- <include-file>
- <name>externs/Ticker.js</name>
- <path>downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js</path>
- </include-file>
- -->
- </includeFiles>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-createjs</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: CreateJS</name>
+
+ <properties>
+ <createjs.version>0.8.0</createjs.version>
+ <tweenjs.version>0.6.2</tweenjs.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <externcInput>
+ <fileSet>
+ <directory>${project.basedir}/src/main/javascript</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ </externcInput>
+ <externcConfig>
+ <class-excludes>
+ <class-exclude>
+ <className>MovieClipPlugin</className>
+ </class-exclude>
+ <class-exclude>
+ <className>createjs.Text.V_OFFSETS</className>
+ </class-exclude>
+ <class-exclude>
+ <className>createjs.Text.H_OFFSETS</className>
+ </class-exclude>
+ <class-exclude>
+ <className>createjs.Graphics.BASE_64</className>
+ </class-exclude>
+ </class-excludes>
+ </externcConfig>
+ <includeFiles>
+ <include-file>
+ <name>externs/missing.js</name>
+ <path>../src/main/javascript/missing.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/createjs.js</name>
+ <path>../src/main/javascript/createjs.js</path>
+ </include-file>
+ <!--
+ <include-file>
+ <name>externs/AlphaMapFilter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMapFilter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/AlphaMaskFilter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/AlphaMaskFilter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/BlurFilter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/BlurFilter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/ColorFilter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorFilter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/ColorMatrix.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrix.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/ColorMatrixFilter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/ColorMatrixFilter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Filter.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/filters/Filter.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Bitmap.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Bitmap.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/BitmapText.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/BitmapText.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Container.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Container.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/DisplayObject.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/DisplayObject.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/DOMElement.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/DOMElement.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Graphics.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Graphics.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/MovieClip.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/MovieClip.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Shadow.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shadow.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Shape.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Shape.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Sprite.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Sprite.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/SpriteContainer.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteContainer.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/SpriteSheet.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteSheet.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/SpriteStage.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/SpriteStage.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Stage.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Stage.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Text.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/display/Text.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/ButtonHelper.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/ui/ButtonHelper.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/DisplayProps.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/geom/DisplayProps.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Matrix2D.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Matrix2D.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Point.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Point.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Rectangle.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/geom/Rectangle.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Ease.js</name>
+ <path>downloads/TweenJS-0.6.2/src/tweenjs/Ease.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Tween.js</name>
+ <path>downloads/TweenJS-0.6.2/src/tweenjs/Tween.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Timeline.js</name>
+ <path>downloads/TweenJS-0.6.2/src/tweenjs/Timeline.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Event.js</name>
+ <path>downloads/EaselJS-0.8.0/src/createjs/events/Event.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/EventDispatcher.js</name>
+ <path>downloads/EaselJS-0.8.0/src/createjs/events/EventDispatcher.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/MouseEvent.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/events/MouseEvent.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/SpriteSheetBuilder.js</name>
+ <path>downloads/EaselJS-0.8.0/src/easeljs/utils/SpriteSheetBuilder.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/Ticker.js</name>
+ <path>downloads/EaselJS-0.8.0/src/createjs/utils/Ticker.js</path>
+ </include-file>
+ -->
+ </includeFiles>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/google_maps/build.xml b/google_maps/build.xml
index d467b52..ac95dbf 100644
--- a/google_maps/build.xml
+++ b/google_maps/build.xml
@@ -79,6 +79,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<target name="preprocess" depends="download">
@@ -169,9 +174,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/google_maps.swc" />
</java>
</target>
diff --git a/google_maps/pom.xml b/google_maps/pom.xml
index 8434c87..2919183 100644
--- a/google_maps/pom.xml
+++ b/google_maps/pom.xml
@@ -1,108 +1,108 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-googlemaps</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: GoogleMaps</name>
-
- <properties>
- <googlemaps.version>v3_11</googlemaps.version>
- </properties>
-
- <build>
- <plugins>
- <!-- Download JavaScript form GitHub -->
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>1.2.1</version>
- <executions>
- <execution>
- <id>get-createjs</id>
- <phase>validate</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <skipCache>true</skipCache>
- <url>https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/maps/google_maps_api_${googlemaps.version}.js</url>
- <outputFileName>google_maps_api_${googlemaps.version}.js</outputFileName>
- <outputDirectory>${project.build.directory}/downloads</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <externcInput>
- <fileSet>
- <directory>${project.basedir}/target/downloads</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- </externcInput>
- <includeFiles>
- <include-file>
- <name>externs/google_maps_api_v3_11.js</name>
- <path>downloads/google_maps_api_v3_11.js</path>
- </include-file>
- </includeFiles>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-googlemaps</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: GoogleMaps</name>
+
+ <properties>
+ <googlemaps.version>v3_11</googlemaps.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Download JavaScript form GitHub -->
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>download-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>get-createjs</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <skipCache>true</skipCache>
+ <url>https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/maps/google_maps_api_${googlemaps.version}.js</url>
+ <outputFileName>google_maps_api_${googlemaps.version}.js</outputFileName>
+ <outputDirectory>${project.build.directory}/downloads</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <externcInput>
+ <fileSet>
+ <directory>${project.basedir}/target/downloads</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ </externcInput>
+ <includeFiles>
+ <include-file>
+ <name>externs/google_maps_api_v3_11.js</name>
+ <path>downloads/google_maps_api_v3_11.js</path>
+ </include-file>
+ </includeFiles>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/jasmine/build.xml b/jasmine/build.xml
index f5f3136..a8af77f 100644
--- a/jasmine/build.xml
+++ b/jasmine/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<target name="preprocess">
@@ -111,9 +116,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/jasmine.swc" />
</java>
</target>
diff --git a/jasmine/pom.xml b/jasmine/pom.xml
index bedef4c..7565d1d 100644
--- a/jasmine/pom.xml
+++ b/jasmine/pom.xml
@@ -1,120 +1,120 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-jasmine</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: Jasmine</name>
-
- <properties>
- <jasmine.version>2.0</jasmine.version>
- </properties>
-
- <build>
- <plugins>
- <!-- Download JavaScript form GitHub -->
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>1.2.1</version>
- <executions>
- <execution>
- <id>get-createjs</id>
- <phase>validate</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/jasmine-${jasmine.version}.js</url>
- <outputFileName>jasmine-${jasmine.version}.js</outputFileName>
- <outputDirectory>${project.build.directory}/downloads</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <externcInput>
- <fileSet>
- <directory>${project.basedir}/target/downloads</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- </externcInput>
- <externcConfig>
- <field-excludes>
- <field-exclude>
- <className>jasmine.Spec</className>
- <field>$injector</field>
- </field-exclude>
- </field-excludes>
- <excludes>
- <exclude>
- <className>jasmine.Matchers</className>
- <name>actual</name>
- </exclude>
- </excludes>
- </externcConfig>
- <includeFiles>
- <include-file>
- <name>externs/jasmine-2.0.js</name>
- <path>downloads/jasmine-2.0.js</path>
- </include-file>
- </includeFiles>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-jasmine</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: Jasmine</name>
+
+ <properties>
+ <jasmine.version>2.0</jasmine.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Download JavaScript form GitHub -->
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>download-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>get-createjs</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/jasmine-${jasmine.version}.js</url>
+ <outputFileName>jasmine-${jasmine.version}.js</outputFileName>
+ <outputDirectory>${project.build.directory}/downloads</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <externcInput>
+ <fileSet>
+ <directory>${project.basedir}/target/downloads</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ </externcInput>
+ <externcConfig>
+ <field-excludes>
+ <field-exclude>
+ <className>jasmine.Spec</className>
+ <field>$injector</field>
+ </field-exclude>
+ </field-excludes>
+ <excludes>
+ <exclude>
+ <className>jasmine.Matchers</className>
+ <name>actual</name>
+ </exclude>
+ </excludes>
+ </externcConfig>
+ <includeFiles>
+ <include-file>
+ <name>externs/jasmine-2.0.js</name>
+ <path>downloads/jasmine-2.0.js</path>
+ </include-file>
+ </includeFiles>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/jquery/build.xml b/jquery/build.xml
index 4892cef..73cf563 100644
--- a/jquery/build.xml
+++ b/jquery/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<target name="preprocess" depends="download">
@@ -148,9 +153,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/jquery-1.9.swc" />
</java>
</target>
diff --git a/jquery/pom.xml b/jquery/pom.xml
index 9011625..4bfc004 100644
--- a/jquery/pom.xml
+++ b/jquery/pom.xml
@@ -23,11 +23,11 @@
<parent>
<groupId>org.apache.royale.typedefs</groupId>
<artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
</parent>
<artifactId>royale-typedefs-jquery</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
<packaging>swc</packaging>
<name>Apache Royale: TypeDefs: JQuery</name>
@@ -164,7 +164,7 @@
<dependency>
<groupId>org.apache.royale.typedefs</groupId>
<artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
<type>swc</type>
<classifier>typedefs</classifier>
<scope>runtime</scope>
diff --git a/js/build.xml b/js/build.xml
index 79179fc..2d6c1bb 100644
--- a/js/build.xml
+++ b/js/build.xml
@@ -77,6 +77,11 @@
</and>
</condition>
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="main" depends="preprocess, externc, postprocess, compc" />
<target name="download" >
@@ -97,6 +102,7 @@
<exclude name="**/w3c_css.js"/>
<exclude name="**/gecko_dom.js"/>
<exclude name="**/w3c_dom2.js"/>
+ <exclude name="**/html5.js"/>
</patternset>
</unzip>
<get src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/svg.js" dest="${basedir}/target/downloads/svg.js" ignoreerrors="true" skipexisting="false"/>
@@ -106,6 +112,7 @@
<get src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/externs/browser/w3c_css.js" dest="${basedir}/target/downloads/browser/w3c_css.js" ignoreerrors="true" skipexisting="false"/>
<get src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/externs/browser/gecko_dom.js" dest="${basedir}/target/downloads/browser/gecko_dom.js" ignoreerrors="true" skipexisting="false"/>
<get src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/externs/browser/w3c_dom2.js" dest="${basedir}/target/downloads/browser/w3c_dom2.js" ignoreerrors="true" skipexisting="false"/>
+ <get src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/externs/browser/html5.js" dest="${basedir}/target/downloads/browser/html5.js" ignoreerrors="true" skipexisting="false"/>
<antcall target="get-from-cache-if-needed" >
<param name="srcFile" value="svg.js" />
<param name="destFile" value="svg.js" />
@@ -141,6 +148,11 @@
<param name="destFile" value="w3c_dom2.js" />
<param name="destDir" value="${basedir}/target/downloads/browser" />
</antcall>
+ <antcall target="get-from-cache-if-needed" >
+ <param name="srcFile" value="html5.js" />
+ <param name="destFile" value="html5.js" />
+ <param name="destDir" value="${basedir}/target/downloads/browser" />
+ </antcall>
<antcall target="fail-if-not-found" >
<param name="destFile" value="svg.js" />
<param name="destDir" value="${basedir}/target/downloads" />
@@ -211,8 +223,9 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=externs/frameworks" />
- <arg value="-debug" />
<arg value="-load-config=${basedir}/target/compile-as-config.xml" />
+ <arg line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/js.swc" />
</java>
</target>
diff --git a/js/pom.xml b/js/pom.xml
index 50291f4..d18b05e 100644
--- a/js/pom.xml
+++ b/js/pom.xml
@@ -23,11 +23,11 @@
<parent>
<groupId>org.apache.royale.typedefs</groupId>
<artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
</parent>
<artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
<packaging>swc</packaging>
<name>Apache Royale: TypeDefs: JS</name>
@@ -59,7 +59,7 @@
<dependency>
<groupId>com.google.javascript</groupId>
<artifactId>closure-compiler-externs</artifactId>
- <version>v20170626</version>
+ <version>v20181210</version>
</dependency>
</dependencies>
</plugin>
@@ -166,6 +166,20 @@
<overwrite>true</overwrite>
</configuration>
</execution>
+ <execution>
+ <id>get-html5</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/externs/browser/html5.js</url>
+ <outputFileName>html5.js</outputFileName>
+ <outputDirectory>${project.build.directory}/downloads/browser</outputDirectory>
+ <skipCache>true</skipCache>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
</executions>
</plugin>
diff --git a/js/src/main/config/externc-config.xml b/js/src/main/config/externc-config.xml
index 08eb3d4..4e481d0 100644
--- a/js/src/main/config/externc-config.xml
+++ b/js/src/main/config/externc-config.xml
@@ -217,25 +217,135 @@
be provided by the extern, but we want true constants in order
to allow constants as parameter initializers and other places
where compile-time constants are required -->
+
+ <!-- int -->
<true-constant>
<class>int</class>
<name>MAX_VALUE</name>
- <value>2147483647</value>
+ <value>0x7fffffff</value>
</true-constant>
<true-constant>
<class>int</class>
<name>MIN_VALUE</name>
- <value>-2147483648</value>
+ <value>-0x80000000</value>
</true-constant>
+
+ <!-- uint -->
<true-constant>
<class>uint</class>
<name>MAX_VALUE</name>
- <value>4294967295</value>
+ <value>0xffffffff</value>
</true-constant>
<true-constant>
<class>uint</class>
<name>MIN_VALUE</name>
<value>0</value>
</true-constant>
+
+ <!-- Number -->
+ <true-constant>
+ <class>Number</class>
+ <name>NaN</name>
+ <value>0/0</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>NEGATIVE_INFINITY</name>
+ <value>-1/0</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>POSITIVE_INFINITY</name>
+ <value>1/0</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>MIN_VALUE</name>
+ <value>4.9e-324</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>MAX_VALUE</name>
+ <value>1.7976931348623158e+308</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>MIN_SAFE_INTEGER</name>
+ <value>-9007199254740991</value>
+ </true-constant>
+ <true-constant>
+ <class>Number</class>
+ <name>MAX_SAFE_INTEGER</name>
+ <value>9007199254740991</value>
+ </true-constant>
+
+ <!-- Math -->
+ <true-constant>
+ <class>Math</class>
+ <name>E</name>
+ <value>2.718281828459045</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>LN10</name>
+ <value>2.302585092994046</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>LN2</name>
+ <value>0.6931471805599453</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>LOG10E</name>
+ <value>0.4342944819032518</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>LOG2E</name>
+ <value>1.442695040888963387</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>PI</name>
+ <value>3.141592653589793</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>SQRT1_2</name>
+ <value>0.7071067811865476</value>
+ </true-constant>
+ <true-constant>
+ <class>Math</class>
+ <name>SQRT2</name>
+ <value>1.4142135623730951</value>
+ </true-constant>
+
+ <!-- Array -->
+ <true-constant>
+ <class>Array</class>
+ <name>CASEINSENSITIVE</name>
+ <value>1</value>
+ </true-constant>
+ <true-constant>
+ <class>Array</class>
+ <name>DESCENDING</name>
+ <value>2</value>
+ </true-constant>
+ <true-constant>
+ <class>Array</class>
+ <name>UNIQUESORT</name>
+ <value>4</value>
+ </true-constant>
+ <true-constant>
+ <class>Array</class>
+ <name>RETURNINDEXEDARRAY</name>
+ <value>8</value>
+ </true-constant>
+ <true-constant>
+ <class>Array</class>
+ <name>NUMERIC</name>
+ <value>16</value>
+ </true-constant>
</royale-config>
diff --git a/js/src/main/javascript/missing.js b/js/src/main/javascript/missing.js
index d1c32b0..8869e69 100644
--- a/js/src/main/javascript/missing.js
+++ b/js/src/main/javascript/missing.js
@@ -63,16 +63,6 @@
performance.now = function() {};
/**
-* @constructor
-*/
-function dialogPolyfill() {};
-
-/**
-* @param {!Element} element to upgrade, if necessary
-*/
-dialogPolyfill.registerDialog = function(element) {};
-
-/**
* @constructor
*/
function Navigator() {}
@@ -338,3 +328,271 @@
*/
Date.prototype.timezoneOffset;
+/**
+ * @param {string} type
+ * @param {EventListener|function(!Event):*} listener
+ * @param {(boolean|!AddEventListenerOptions)=} opt_options
+ * @return {undefined}
+ * @see https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener
+ */
+BaseAudioContext.prototype.addEventListener = function(type, listener, opt_options) {
+};
+
+/**
+ * @param {string} type
+ * @param {EventListener|function(!Event):*} listener
+ * @param {(boolean|!EventListenerOptions)=} opt_options
+ * @return {undefined}
+ * @see https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener
+ */
+BaseAudioContext.prototype.removeEventListener = function(
+ type, listener, opt_options) {};
+
+/**
+ * @param {!Event} evt
+ * @return {boolean}
+ * @see https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent
+ */
+BaseAudioContext.prototype.dispatchEvent = function(evt) {};
+
+
+// WEB-ANIMATIONS-API
+
+/**
+ * @fileoverview Basic externs for the Web Animations API. This is not
+ * nessecarily exhaustive. For more information, see the spec-
+ * https://drafts.csswg.org/web-animations/
+ * @externs
+ */
+
+
+/**
+ * @param {!Array<!Object>} frames
+ * @param {(number|AnimationEffectTimingProperties)=} opt_options
+ * @return {!Animation}
+ */
+Element.prototype.animate = function(frames, opt_options) {};
+
+
+/**
+ * @interface
+ * @extends {EventTarget}
+ */
+var Animation = function() {};
+
+/**
+ * @return {undefined}
+ */
+Animation.prototype.cancel = function() {};
+
+/**
+ * @return {undefined}
+ */
+Animation.prototype.finish = function() {};
+
+/**
+ * @return {undefined}
+ */
+Animation.prototype.reverse = function() {};
+
+/**
+ * @return {undefined}
+ */
+Animation.prototype.pause = function() {};
+
+/**
+ * @return {undefined}
+ */
+Animation.prototype.play = function() {};
+
+/** @type {number} */
+Animation.prototype.startTime;
+
+/** @type {number} */
+Animation.prototype.currentTime;
+
+/** @type {number} */
+Animation.prototype.playbackRate;
+
+/** @type {string} */
+Animation.prototype.playState;
+
+/** @type {?function(!Event)} */
+Animation.prototype.oncancel;
+
+/** @type {?function(!Event)} */
+Animation.prototype.onfinish;
+
+
+/**
+ * @typedef {{
+ * delay: (number|undefined),
+ * endDelay: (number|undefined),
+ * fillMode: (string|undefined),
+ * iterationStart: (number|undefined),
+ * iterations: (number|undefined),
+ * duration: (number|string|undefined),
+ * direction: (string|undefined),
+ * easing: (string|undefined)
+ * }}
+ */
+var AnimationEffectTimingProperties;
+
+
+/**
+ * @interface
+ */
+var AnimationEffectTiming = function() {};
+
+/** @type {number} */
+AnimationEffectTiming.prototype.delay;
+
+/** @type {number} */
+AnimationEffectTiming.prototype.endDelay;
+
+/** @type {string} */
+AnimationEffectTiming.prototype.fillMode;
+
+/** @type {number} */
+AnimationEffectTiming.prototype.iterationStart;
+
+/** @type {number} */
+AnimationEffectTiming.prototype.iterations;
+
+/** @type {number|string} */
+AnimationEffectTiming.prototype.duration;
+
+/** @type {string} */
+AnimationEffectTiming.prototype.direction;
+
+/** @type {string} */
+AnimationEffectTiming.prototype.easing;
+
+/**
+ * @fileoverview Definitions for URL and URLSearchParams from the spec at
+ * https://url.spec.whatwg.org.
+ *
+ * @externs
+ * @author rdcronin@google.com (Devlin Cronin)
+ */
+
+/**
+ * @constructor
+ * @implements {Iterable<!Array<string>>}
+ * @param {(string|!URLSearchParams)=} init
+ */
+function URLSearchParams(init) {}
+
+/**
+ * @param {string} name
+ * @param {string} value
+ * @return {undefined}
+ */
+URLSearchParams.prototype.append = function(name, value) {};
+
+/**
+ * @param {string} name
+ * @return {undefined}
+ */
+URLSearchParams.prototype.delete = function(name) {};
+
+/**
+ * @param {string} name
+ * @return {?string}
+ */
+URLSearchParams.prototype.get = function(name) {};
+
+/**
+ * @param {string} name
+ * @return {!Array<string>}
+ */
+URLSearchParams.prototype.getAll = function(name) {};
+
+/**
+ * @param {string} name
+ * @return {boolean}
+ */
+URLSearchParams.prototype.has = function(name) {};
+
+/**
+ * @param {string} name
+ * @param {string} value
+ * @return {undefined}
+ */
+URLSearchParams.prototype.set = function(name, value) {};
+
+/**
+ * @see https://url.spec.whatwg.org
+ * @constructor
+ * @param {string} url
+ * @param {(string|!URL)=} base
+ */
+function URL(url, base) {}
+
+/** @type {string} */
+URL.prototype.href;
+
+/**
+ * @const
+ * @type {string}
+ */
+URL.prototype.origin;
+
+/** @type {string} */
+URL.prototype.protocol;
+
+/** @type {string} */
+URL.prototype.username;
+
+/** @type {string} */
+URL.prototype.password;
+
+/** @type {string} */
+URL.prototype.host;
+
+/** @type {string} */
+URL.prototype.hostname;
+
+/** @type {string} */
+URL.prototype.port;
+
+/** @type {string} */
+URL.prototype.pathname;
+
+/** @type {string} */
+URL.prototype.search;
+
+/**
+ * @const
+ * @type {!URLSearchParams}
+ */
+URL.prototype.searchParams;
+
+/** @type {string} */
+URL.prototype.hash;
+
+/**
+ * @param {string} domain
+ * @return {string}
+ */
+URL.domainToASCII = function(domain) {};
+
+/**
+ * @param {string} domain
+ * @return {string}
+ */
+URL.domainToUnicode = function(domain) {};
+
+/**
+ * @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
+ * @param {!File|!Blob|!MediaSource|!MediaStream} obj
+ * @return {string}
+ */
+URL.createObjectURL = function(obj) {};
+
+/**
+ * @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
+ * @param {string} url
+ * @return {undefined}
+ */
+URL.revokeObjectURL = function(url) {};
diff --git a/node/build.xml b/node/build.xml
index 02b3bbb..bd47430 100644
--- a/node/build.xml
+++ b/node/build.xml
@@ -82,6 +82,11 @@
<property name="srcServer" value="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/nodejs" />
<property name="destDir" value="${basedir}/target/downloads/closure-compiler-master/contrib/nodejs" />
+ <tstamp>
+ <format property="royale.swc-date" pattern="MM/dd/yy HH:mm Z"/>
+ </tstamp>
+ <echo>swc-date is ${royale.swc-date}</echo>
+
<target name="getfile" >
<get src="${srcServer}/${srcFile}" dest="${destDir}/${destFile}" skipexisting="true" ignoreerrors="true"/>
<antcall target="get-from-cache-if-needed" >
@@ -229,9 +234,10 @@
<java jar="${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" fork="true"
failonerror="true">
<arg value="+royalelib=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 line="-metadata.date="${royale.swc-date}"" />
+ <arg line="-metadata.dateFormat="MM/dd/yy HH:mm Z"" />
<arg value="-output=${basedir}/target/node.swc" />
</java>
</target>
diff --git a/node/pom.xml b/node/pom.xml
index d997008..64ef7ea 100644
--- a/node/pom.xml
+++ b/node/pom.xml
@@ -1,238 +1,242 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
- </parent>
-
- <artifactId>royale-typedefs-node</artifactId>
- <version>0.9.4</version>
- <packaging>swc</packaging>
-
- <name>Apache Royale: TypeDefs: Node</name>
-
- <build>
- <plugins>
- <!-- Download JavaScript form GitHub -->
- <plugin>
- <groupId>com.googlecode.maven-download-plugin</groupId>
- <artifactId>download-maven-plugin</artifactId>
- <version>1.2.1</version>
- <executions>
- <execution>
- <id>get-closure-sources</id>
- <phase>validate</phase>
- <goals>
- <goal>wget</goal>
- </goals>
- <configuration>
- <url>https://github.com/google/closure-compiler/archive/master.zip</url>
- <!--
- Give it a number matching the date so we can
- trigger a new download by updating the date
- -->
- <outputFileName>closure-compiler-20170626.zip</outputFileName>
- <outputDirectory>${project.build.directory}/downloads</outputDirectory>
- <unpack>true</unpack>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>royale-maven-plugin</artifactId>
- <version>${royale.compiler.version}</version>
- <extensions>true</extensions>
- <configuration>
- <includeSources>true</includeSources>
- <externcInput>
- <fileSet>
- <directory>${project.basedir}/src/main/javascript</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- <fileSet>
- <directory>${project.basedir}/target/downloads/closure-compiler-master/contrib/nodejs</directory>
- <includes>
- <include>**/*.js</include>
- </includes>
- </fileSet>
- </externcInput>
- <externcConfig>
- <excludes>
- <exclude>
- <className>Buffer</className>
- <name>toJSON</name>
- </exclude>
- <exclude>
- <className>osNetworkInterfacesInfo</className>
- <name>internal</name>
- </exclude>
- </excludes>
- </externcConfig>
- <includeFiles>
- <include-file>
- <name>externs/missing.js</name>
- <path>../src/main/javascript/missing.js</path>
- </include-file>
- <include-file>
- <name>externs/assert.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/assert.js</path>
- </include-file>
- <include-file>
- <name>externs/buffer.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/buffer.js</path>
- </include-file>
- <include-file>
- <name>externs/child_process.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/child_process.js</path>
- </include-file>
- <include-file>
- <name>externs/cluster.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/cluster.js</path>
- </include-file>
- <include-file>
- <name>externs/crypto.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/crypto.js</path>
- </include-file>
- <include-file>
- <name>externs/dgram.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/dgram.js</path>
- </include-file>
- <include-file>
- <name>externs/dns.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/dns.js</path>
- </include-file>
- <include-file>
- <name>externs/domain.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/domain.js</path>
- </include-file>
- <include-file>
- <name>externs/events.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/events.js</path>
- </include-file>
- <include-file>
- <name>externs/fs.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/fs.js</path>
- </include-file>
- <include-file>
- <name>externs/globals.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/globals.js</path>
- </include-file>
- <include-file>
- <name>externs/http.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/http.js</path>
- </include-file>
- <include-file>
- <name>externs/https.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/https.js</path>
- </include-file>
- <include-file>
- <name>externs/net.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/net.js</path>
- </include-file>
- <include-file>
- <name>externs/os.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/os.js</path>
- </include-file>
- <include-file>
- <name>externs/path.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/path.js</path>
- </include-file>
- <include-file>
- <name>externs/punycode.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/punycode.js</path>
- </include-file>
- <include-file>
- <name>externs/querystring.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/querystring.js</path>
- </include-file>
- <include-file>
- <name>externs/readline.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/readline.js</path>
- </include-file>
- <include-file>
- <name>externs/repl.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/repl.js</path>
- </include-file>
- <include-file>
- <name>externs/stream.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/stream.js</path>
- </include-file>
- <include-file>
- <name>externs/string_decoder.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/string_decoder.js</path>
- </include-file>
- <include-file>
- <name>externs/tls.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/tls.js</path>
- </include-file>
- <include-file>
- <name>externs/tty.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/tty.js</path>
- </include-file>
- <include-file>
- <name>externs/url.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/url.js</path>
- </include-file>
- <include-file>
- <name>externs/util.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/util.js</path>
- </include-file>
- <include-file>
- <name>externs/vm.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/vm.js</path>
- </include-file>
- <include-file>
- <name>externs/zlib.js</name>
- <path>downloads/closure-compiler-master/contrib/nodejs/zlib.js</path>
- </include-file>
- </includeFiles>
- <skipSwc>true</skipSwc>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.compiler</groupId>
- <artifactId>compiler-jx</artifactId>
- <version>${royale.compiler.version}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.royale.typedefs</groupId>
- <artifactId>royale-typedefs-js</artifactId>
- <version>0.9.4</version>
- <type>swc</type>
- <classifier>typedefs</classifier>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-parent</artifactId>
+ <version>0.9.6</version>
+ </parent>
+
+ <artifactId>royale-typedefs-node</artifactId>
+ <version>0.9.6</version>
+ <packaging>swc</packaging>
+
+ <name>Apache Royale: TypeDefs: Node</name>
+
+ <properties>
+ <closure.version>20181210</closure.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Download JavaScript form GitHub -->
+ <plugin>
+ <groupId>com.googlecode.maven-download-plugin</groupId>
+ <artifactId>download-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>get-closure-sources</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://github.com/google/closure-compiler/archive/v${closure.version}.zip</url>
+ <!--
+ Give it a number matching the date so we can
+ trigger a new download by updating the date
+ -->
+ <outputFileName>closure-compiler-${closure.version}.zip</outputFileName>
+ <outputDirectory>${project.build.directory}/downloads</outputDirectory>
+ <unpack>true</unpack>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <includeSources>true</includeSources>
+ <externcInput>
+ <fileSet>
+ <directory>${project.basedir}/src/main/javascript</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.basedir}/target/downloads/closure-compiler-${closure.version}/contrib/nodejs</directory>
+ <includes>
+ <include>**/*.js</include>
+ </includes>
+ </fileSet>
+ </externcInput>
+ <externcConfig>
+ <excludes>
+ <exclude>
+ <className>Buffer</className>
+ <name>toJSON</name>
+ </exclude>
+ <exclude>
+ <className>osNetworkInterfacesInfo</className>
+ <name>internal</name>
+ </exclude>
+ </excludes>
+ </externcConfig>
+ <includeFiles>
+ <include-file>
+ <name>externs/missing.js</name>
+ <path>../src/main/javascript/missing.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/assert.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/assert.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/buffer.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/buffer.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/child_process.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/child_process.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/cluster.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/cluster.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/crypto.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/crypto.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/dgram.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/dgram.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/dns.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/dns.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/domain.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/domain.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/events.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/events.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/fs.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/fs.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/globals.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/globals.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/http.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/http.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/https.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/https.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/net.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/net.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/os.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/os.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/path.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/path.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/punycode.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/punycode.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/querystring.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/querystring.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/readline.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/readline.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/repl.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/repl.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/stream.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/stream.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/string_decoder.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/string_decoder.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/tls.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/tls.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/tty.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/tty.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/url.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/url.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/util.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/util.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/vm.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/vm.js</path>
+ </include-file>
+ <include-file>
+ <name>externs/zlib.js</name>
+ <path>downloads/closure-compiler-${closure.version}/contrib/nodejs/zlib.js</path>
+ </include-file>
+ </includeFiles>
+ <skipSwc>true</skipSwc>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>compiler-jx</artifactId>
+ <version>${royale.compiler.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.royale.typedefs</groupId>
+ <artifactId>royale-typedefs-js</artifactId>
+ <version>0.9.6</version>
+ <type>swc</type>
+ <classifier>typedefs</classifier>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+
+</project>
diff --git a/pom.xml b/pom.xml
index 3815884..62895ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,16 +28,16 @@
<groupId>org.apache.royale.typedefs</groupId>
<artifactId>royale-typedefs-parent</artifactId>
- <version>0.9.4</version>
+ <version>0.9.6</version>
<packaging>pom</packaging>
<name>Apache Royale: TypeDefs: Parent</name>
<scm>
- <connection>scm:git:git@github.com:apache/royale-typedefs.git</connection>
- <developerConnection>scm:git:git@github.com:apache/royale-typedefs.git</developerConnection>
- <url>scm:git:git@github.com:apache/royale-typedefs.git</url>
- <tag>org.apache.royale.typedefs-0.9.4-rc2</tag>
+ <connection>scm:git:https://github.com/apache/royale-typedefs.git</connection>
+ <developerConnection>scm:git:https://github.com/apache/royale-typedefs.git</developerConnection>
+ <url>scm:git:https://github.com/apache/royale-typedefs.git</url>
+ <tag>org.apache.royale.typedefs-0.9.6-rc3</tag>
</scm>
<properties>
@@ -45,10 +45,12 @@
<project.reporting.outputencoding>UTF-8</project.reporting.outputencoding>
<maven.version>3.3.1</maven.version>
- <royale.compiler.version>0.9.4</royale.compiler.version>
- <royale.build-tools.version>1.0.0</royale.build-tools.version>
+ <royale.compiler.version>0.9.6</royale.compiler.version>
+ <royale.build-tools.version>1.1.0</royale.build-tools.version>
+ <royale.swc-date>9/24/19 9:06 -0800</royale.swc-date>
<git.executable>git</git.executable>
+ <skipgpg>false</skipgpg>
<!-- URL of the ASF SonarQube server -->
<sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
@@ -87,20 +89,16 @@
</mailingList>
</mailingLists>
- <modules>
- <module>cordova</module>
- <module>createjs</module>
- <module>GCL</module>
- <module>google_maps</module>
- <module>jasmine</module>
- <module>jquery</module>
- <module>js</module>
- <module>node</module>
- </modules>
-
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-gpg-plugin</artifactId>
+ <configuration>
+ <skip>${skipgpg}</skip><!--true to skip gpg if building release on CI server -->
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.2</version>
@@ -124,6 +122,14 @@
<excludes>
<!-- Patch files aren't supposed to have headers -->
<exclude>**/*.patch</exclude>
+ <!--
+ Exclude any eventually existing content of target directories.
+ Some times when building with a bigger maven reactor and then
+ with a smaller one, RAT will complain about stuff still in the
+ target directories. We don't want that.
+ -->
+ <exclude>**/target/**</exclude>
+ <exclude>**/release-dir/**</exclude>
</excludes>
</configuration>
<dependencies>
@@ -189,6 +195,28 @@
</attributes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.5.3</version>
+ <configuration>
+ <providerImplementations>
+ <git>jgit</git>
+ </providerImplementations>
+ </configuration>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.scm</groupId>
+ <artifactId>maven-scm-provider-jgit</artifactId>
+ <version>1.11.2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.scm</groupId>
+ <artifactId>maven-scm-api</artifactId>
+ <version>1.11.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -252,6 +280,60 @@
<git.executable>git.exe</git.executable>
</properties>
</profile>
+ <profile>
+ <id>main</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>cordova</module>
+ <module>createjs</module>
+ <module>GCL</module>
+ <module>google_maps</module>
+ <module>jasmine</module>
+ <module>jquery</module>
+ <module>js</module>
+ <module>node</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>upload-release-to-staging</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <modules><!-- only run on top-level, not for each module -->
+ </modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>wagon-maven-plugin</artifactId>
+ <version>2.0.0</version>
+ <configuration>
+ <includes>**</includes>
+ <serverId>apache.releases.https</serverId>
+ <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>release-swcs</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.royale.compiler</groupId>
+ <artifactId>royale-maven-plugin</artifactId>
+ <version>${royale.compiler.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <additionalCompilerOptions>-metadata.date="${royale.swc-date}";-metadata.dateFormat="MM/dd/yy HH:mm Z"</additionalCompilerOptions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<repositories>
diff --git a/releasesteps.xml b/releasesteps.xml
new file mode 100644
index 0000000..f5b0f31
--- /dev/null
+++ b/releasesteps.xml
@@ -0,0 +1,343 @@
+<?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="CreateTypedefsReleaseCandidate" default="main" basedir=".">
+
+ <!-- use -Dtag=<tag or commit hash> to build from other than the head -->
+
+ <!-- Required for OSX 10.6 / Snow Leopard Performance. -->
+ <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
+ <!-- local.d32 is set/used in build.properties so this needs to be done first. -->
+ <condition property="local.d32" value="-d32">
+ <and>
+ <os family="windows"/>
+ <equals arg1="${sun.arch.data.model}" arg2="64"/>
+ <equals arg1="${os.arch}" arg2="x86_64"/>
+ <equals arg1="${ant.java.version}" arg2="1.6"/>
+ </and>
+ </condition>
+
+ <condition property="isMac" value="mac">
+ <os family="mac" />
+ </condition>
+ <condition property="isWindows" value="windows">
+ <os family="windows" />
+ </condition>
+ <condition property="isLinux" value="linux">
+ <and>
+ <os family="unix" />
+ <not>
+ <isset property="isMac" />
+ </not>
+ </and>
+ </condition>
+
+ <property name="rat.report" value="${basedir}/rat-report.txt"/>
+ <property name="apache.rat.jar" value="apache-rat-0.11.jar" />
+ <property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.11.jar" />
+ <property name="apache.rat.url" value="https://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat/0.11" />
+ <property name="apache.rat.tasks.url" value="https://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat-tasks/0.11" />
+
+ <property file="${basedir}/local.properties" />
+ <property file="${basedir}/build.properties" />
+
+ <property environment="env"/>
+
+ <condition property="do.copy.downloads" >
+ <isset property="download.cache.dir" />
+ </condition>
+
+ <condition property="CRLF" value="%0D%0A">
+ <isset property="isWindows" />
+ </condition>
+ <property name="CRLF" value="%0A" />
+
+ <condition property="mvn" value="mvn.cmd">
+ <isset property="isWindows" />
+ </condition>
+ <property name="mvn" value="mvn" />
+
+ <available file="${env.ANT_HOME}/lib/${apache.rat.jar}"
+ type="file"
+ property="apache.rat.found"/>
+ <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}"
+ type="file"
+ property="apache.rat.tasks.found"/>
+
+ <fail message="The release version number is not set. Specify -Drelease.version=<release version (e.g. 0.9.0, 1.0.0, etc)>"
+ unless="release.version"/>
+
+ <target name="install-rat" depends="install-rat.jar,install-rat.tasks.jar" />
+ <target name="install-rat.jar" unless="apache.rat.found">
+ <get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" />
+ </target>
+ <target name="install-rat.tasks.jar" unless="apache.rat.tasks.found">
+ <get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
+ </target>
+
+ <target name="rat-taskdef" description="Rat taskdef">
+ <typedef resource="org/apache/rat/anttasks/antlib.xml"
+ uri="antlib:org.apache.rat.anttasks"
+ classpathref="anttask.classpath"/>
+ </target>
+
+ <target name="checkout_tag" if="tag" >
+ <exec executable="${git}" dir="${basedir}" failonerror="true" >
+ <arg value="checkout" />
+ <arg value="${tag}" />
+ </exec>
+ </target>
+
+ <target name="Release_Step_007" depends="get-temp-folder,download-artifacts,unzip-artifacts,build-source,validate-bits">
+ </target>
+ <target name="get-temp-folder">
+ <input
+ message="Enter a temporary folder to store the downloaded artifacts:"
+ addproperty="artifactfolder"/>
+ <mkdir dir="${artifactfolder}" />
+ <available file="${artifactfolder}"
+ type="dir"
+ property="artifact.folder.found"/>
+ <fail message="Could not create artifact folder"
+ unless="artifact.folder.found"/>
+ </target>
+ <target name="download-artifacts" if="artifactfolder">
+ <get src="http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/Royale_Release_Step_007/lastSuccessfulBuild/artifact/*zip*/archive.zip" dest="${artifactfolder}/archive.zip" />
+ </target>
+ <target name="unzip-artifacts" if="artifactfolder">
+ <mkdir dir="${artifactfolder}/artifacts" />
+ <unzip src="${artifactfolder}/archive.zip" dest="${artifactfolder}/artifacts"/>
+ </target>
+ <target name="build-source" >
+ <mkdir dir="${artifactfolder}/sources" />
+ <unzip src="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-parent/${release.version}/royale-typedefs-parent-${release.version}-source-release.zip" dest="${artifactfolder}/sources" >
+ <cutdirsmapper dirs="1" />
+ </unzip>
+
+ <!-- build these modules -->
+ <exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
+ <arg value="clean" />
+ <arg value="install" />
+ <arg value="-P" />
+ <arg value="release-swcs,main" />
+ </exec>
+ </target>
+
+ <target name="get-artifact-folder" unless="artifactfolder">
+ <input
+ message="Enter the temporary folder to store the downloaded artifacts:"
+ addproperty="artifactfolder"/>
+ <available file="${artifactfolder}"
+ type="dir"
+ property="artifact.folder.found"/>
+ <fail message="Could not find artifact folder"
+ unless="artifact.folder.found"/>
+ </target>
+
+ <target name="validate-bits" depends="get-artifact-folder,compare-swcs">
+ </target>
+
+ <target name="write-out-maven-swcs-list" >
+ <delete file="${artifactfolder}/swcs.txt" />
+ <!-- this is a comma-delimited, no spaces, no-line-breaks list used to decide which swcs
+ to skip in the rat-check of the binaries and which swcs to examine before approval -->
+ <property name="swcs-list" value="cordova,createjs,gcl,google_maps,jasmine,jquery,js,node"/>
+ <echo file="${artifactfolder}/swcs.txt" message="${swcs-list}"/>
+ </target>
+
+ <target name="compare-swcs" depends="write-out-maven-swcs-list">
+ <!-- comma delimited list, no spaces, not one file per line -->
+ <copy file="${artifactfolder}/swcs.txt" tofile="${artifactfolder}/loop.txt" />
+ <ant antfile="releasesteps.xml" target="loopOnce" inheritAll="false" >
+ <property name="artifactfolder" value="${artifactfolder}" />
+ <property name="release.version" value="${release.version}" />
+ <property name="utils.version" value="${utils.version}" />
+ </ant>
+ </target>
+
+ <target name="loopOnce" >
+ <!-- make a copy of the list so we can munge it to
+ get the first item in the list -->
+ <delete file="${artifactfolder}/loop1.txt" />
+ <copy file="${artifactfolder}/loop.txt" tofile="${artifactfolder}/loop1.txt" />
+ <loadfile srcFile="${artifactfolder}/loop.txt" property="checkiflast" />
+ <condition property="islast" value="true">
+ <not>
+ <contains string="${checkiflast}" substring="," />
+ </not>
+ </condition>
+ <antcall target="notlast" />
+ <antcall target="lastone" />
+ </target>
+ <target name="notlast" unless="islast">
+ <loadfile srcFile="${artifactfolder}/loop1.txt" property="echoFile" />
+ <replaceregexp file="${artifactfolder}/loop1.txt" match="^(.*),(.*)" replace="\2" />
+ <loadfile srcFile="${artifactfolder}/loop1.txt" property="thisFile" />
+ <condition property="artifactid" value="googlemaps">
+ <equals arg1="${thisFile}" arg2="google_maps" />
+ </condition>
+ <property name="artifactid" value="${thisFile}" />
+ <antcall target="compare_files" />
+ <replaceregexp file="${artifactfolder}/loop.txt" match="^(.*),(.*)" replace="\1" />
+ <ant antfile="releasesteps.xml" target="loopOnce" inheritAll="false">
+ <property name="artifactfolder" value="${artifactfolder}" />
+ <property name="release.version" value="${release.version}" />
+ <property name="utils.version" value="${utils.version}" />
+ </ant>
+ </target>
+ <target name="lastone" if="islast">
+ <loadfile srcFile="${artifactfolder}/loop1.txt" property="thisFile" />
+ <property name="artifactid" value="${thisFile}" />
+ <antcall target="compare_files" />
+ <delete file="${artifactfolder}/loop.txt" />
+ <delete file="${artifactfolder}/loop1.txt" />
+ </target>
+
+ <target name="compare_files">
+ <echo>comparing royale-typedefs-${artifactid}-${release.version}-typedefs.swc</echo>
+ <fail message="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-${artifactid}/${release.version}/royale-typedefs-${artifactid}-${release.version}-typedefs.swc does not exist" >
+ <condition>
+ <not>
+ <resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-${artifactid}/${release.version}/royale-typedefs-${artifactid}-${release.version}-typedefs.swc"/></resourceexists>
+ </not>
+ </condition>
+ </fail>
+ <fail message="${artifactfolder}/sources/${thisFile}/target/royale-typedefs-${artifactid}-${release.version}-extern.swc does not exist" >
+ <condition>
+ <not>
+ <resourceexists><file file="${artifactfolder}/sources/${thisFile}/target/royale-typedefs-${artifactid}-${release.version}-extern.swc"/></resourceexists>
+ </not>
+ </condition>
+ </fail>
+ <condition property="filesmatch" value="true">
+ <filesmatch file1="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-${artifactid}/${release.version}/royale-typedefs-${artifactid}-${release.version}-typedefs.swc"
+ file2="${artifactfolder}/sources/${thisFile}/target/royale-typedefs-${artifactid}-${release.version}-extern.swc" />
+ </condition>
+ <fail message="royale-typedefs-${artifactid}-${release.version}-typedefs.swc does not match" unless="filesmatch" />
+ </target>
+
+ <target name="Release_Step_007_Sign" depends="get-artifact-folder">
+ <fail message="release.version not specified"
+ unless="release.version"/>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-parent/${release.version}/royale-typedefs-parent-${release.version}-source-release.zip" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-parent/${release.version}/royale-typedefs-parent-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-cordova/${release.version}/royale-typedefs-cordova-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-cordova/${release.version}/royale-typedefs-cordova-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-cordova/${release.version}/royale-typedefs-cordova-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-createjs/${release.version}/royale-typedefs-createjs-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-createjs/${release.version}/royale-typedefs-createjs-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-createjs/${release.version}/royale-typedefs-createjs-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-gcl/${release.version}/royale-typedefs-gcl-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-gcl/${release.version}/royale-typedefs-gcl-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-gcl/${release.version}/royale-typedefs-gcl-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-googlemaps/${release.version}/royale-typedefs-googlemaps-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-googlemaps/${release.version}/royale-typedefs-googlemaps-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-googlemaps/${release.version}/royale-typedefs-googlemaps-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jasmine/${release.version}/royale-typedefs-jasmine-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jasmine/${release.version}/royale-typedefs-jasmine-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jasmine/${release.version}/royale-typedefs-jasmine-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jquery/${release.version}/royale-typedefs-jquery-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jquery/${release.version}/royale-typedefs-jquery-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-jquery/${release.version}/royale-typedefs-jquery-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-js/${release.version}/royale-typedefs-js-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-js/${release.version}/royale-typedefs-js-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-js/${release.version}/royale-typedefs-js-${release.version}.pom" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-node/${release.version}/royale-typedefs-node-${release.version}-sources.jar" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-node/${release.version}/royale-typedefs-node-${release.version}-typedefs.swc" />
+ </antcall>
+ <antcall target="sign-file" >
+ <param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-node/${release.version}/royale-typedefs-node-${release.version}.pom" />
+ </antcall>
+ </target>
+
+ <target name="sign-file">
+ <exec executable="gpg">
+ <arg value="--armor" />
+ <arg value="--output" />
+ <arg value="${file}.asc" />
+ <arg value="--detach-sig" />
+ <arg value="${file}" />
+ </exec>
+ </target>
+
+ <target name="Release_Step_007_Upload" depends="get-artifact-folder">
+ <fail message="release.version not specified"
+ unless="release.version"/>
+ <exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
+ <arg value="wagon:upload" />
+ <arg value="-X" />
+ <arg value="-Dwagon.fromDir=${artifactfolder}/artifacts/archive/target/checkout/release-dir" />
+ <arg value="-P" />
+ <arg value="-main,upload-release-to-staging" />
+ </exec>
+ </target>
+
+ <target name="main" description="Perform required release approval steps">
+ </target>
+</project>
diff --git a/settings-template.xml b/settings-template.xml
index 07b2c2d..bc78230 100644
--- a/settings-template.xml
+++ b/settings-template.xml
@@ -42,7 +42,7 @@
<repositories>
<repository>
<id>apache-snapshots</id>
- <url>http://repository.apache.org/snapshots/</url>
+ <url>https://repository.apache.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
@@ -54,7 +54,7 @@
<pluginRepositories>
<pluginRepository>
<id>apache-snapshots</id>
- <url>http://repository.apache.org/snapshots/</url>
+ <url>https://repository.apache.org/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>