You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/04/22 19:25:17 UTC
[30/35] git commit: [flex-falcon]
[refs/heads/feature/maven-migration-test] - node externs swc
node externs swc
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/35fae957
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/35fae957
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/35fae957
Branch: refs/heads/feature/maven-migration-test
Commit: 35fae9579583742c96768c95f1d7158ed466f2a4
Parents: 4738daa
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 21 21:04:44 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 22 09:02:59 2016 -0700
----------------------------------------------------------------------
externs/node/build.xml | 72 +++++++++++++++++++++
externs/node/compile-config.xml | 43 -------------
externs/node/node-compile-config.xml | 101 ------------------------------
3 files changed, 72 insertions(+), 144 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/35fae957/externs/node/build.xml
----------------------------------------------------------------------
diff --git a/externs/node/build.xml b/externs/node/build.xml
new file mode 100644
index 0000000..c6cb73c
--- /dev/null
+++ b/externs/node/build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" ?>
+
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+
+<project name="node" default="main" basedir=".">
+
+ <target name="main" depends="preprocess, externc, postprocess, compc" />
+
+ <!-- we need to insert a line near the beginning of the file to make the
+ compiler happy. -->
+ <target name="preprocess">
+ </target>
+
+ <target name="externc" >
+ <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
+ failonerror="false">
+ <arg value="+flexlib=externs" />
+ <arg value="-debug" />
+ <arg value="-load-config=${basedir}/src/main/config/externc-config.xml" />
+ </java>
+ </target>
+
+ <target name="postprocess" >
+ </target>
+
+ <target name="compc" >
+ <copy file="${basedir}/src/main/config/compile-as-config.xml"
+ todir="${basedir}/target" />
+ <java jar="${basedir}/../../compiler/lib/falcon-compc.jar" fork="true"
+ failonerror="true">
+ <arg value="+flexlib=externs/frameworks" />
+ <arg value="-debug" />
+ <arg value="-external-library-path+=${basedir}/../js/target/js.swc" />
+ <arg value="-load-config=${basedir}/target/compile-as-config.xml" />
+ <arg value="-output=${basedir}/target/node.swc" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete failonerror="false" includeEmptyDirs="true" >
+ <fileset dir="${basedir}/target">
+ <include name="**/**"/>
+ <exclude name="downloads/**"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="wipe">
+ <delete failonerror="false" includeEmptyDirs="true" >
+ <fileset dir="${basedir}/target">
+ <include name="**/**"/>
+ </fileset>
+ </delete>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/35fae957/externs/node/compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/node/compile-config.xml b/externs/node/compile-config.xml
deleted file mode 100644
index 66ae820..0000000
--- a/externs/node/compile-config.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<flex-config>
-
- <compiler>
- <accessible>true</accessible>
-
- <external-library-path>
- <path-element>../js/out/bin/js.swc</path-element>
- </external-library-path>
-
- <source-path>
- <path-element>out/as/functions</path-element>
- </source-path>
-
- <warn-no-constructor>false</warn-no-constructor>
- </compiler>
-
- <include-sources>
- <path-element>out/as/functions</path-element>
- </include-sources>
-
- <include-file>
- <name>externs/node.js</name>
- <path>externs/node.js</path>
- </include-file>
-</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/35fae957/externs/node/node-compile-config.xml
----------------------------------------------------------------------
diff --git a/externs/node/node-compile-config.xml b/externs/node/node-compile-config.xml
deleted file mode 100644
index d262740..0000000
--- a/externs/node/node-compile-config.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License</name></exclude> you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<flex-config>
-
- <compiler>
- <accessible>true</accessible>
-
- <locale/>
-
- <source-path>
- <path-element>src</path-element>
- </source-path>
-
- <warn-no-constructor>false</warn-no-constructor>
- </compiler>
-
- <external>
- <path-element>missing.js</path-element>
- <path-element>externs/assert.js</path-element>
- <path-element>externs/buffer.js</path-element>
- <path-element>externs/child_process.js</path-element>
- <path-element>externs/cluster.js</path-element>
- <path-element>externs/crypto.js</path-element>
- <path-element>externs/dgram.js</path-element>
- <path-element>externs/dns.js</path-element>
- <path-element>externs/domain.js</path-element>
- <path-element>externs/events.js</path-element>
- <path-element>externs/fs.js</path-element>
- <path-element>externs/globals.js</path-element>
- <path-element>externs/http.js</path-element>
- <path-element>externs/https.js</path-element>
- <path-element>externs/net.js</path-element>
- <path-element>externs/os.js</path-element>
- <path-element>externs/path.js</path-element>
- <path-element>externs/punycode.js</path-element>
- <path-element>externs/querystring.js</path-element>
- <path-element>externs/readline.js</path-element>
- <path-element>externs/repl.js</path-element>
- <path-element>externs/stream.js</path-element>
- <path-element>externs/string_decoder.js</path-element>
- <path-element>externs/tls.js</path-element>
- <path-element>externs/tty.js</path-element>
- <path-element>externs/url.js</path-element>
- <path-element>externs/util.js</path-element>
- <path-element>externs/vm.js</path-element>
- <path-element>externs/zlib.js</path-element>
- </external>
- <named-module>
- <module>assert</module>
- <module>buffer</module>
- <module>child_process</module>
- <module>cluster</module>
- <module>crypto</module>
- <module>dgram</module>
- <module>dns</module>
- <module>domain</module>
- <module>events</module>
- <module>fs</module>
- <module>globals</module>
- <module>http</module>
- <module>https</module>
- <module>net</module>
- <module>os</module>
- <module>path</module>
- <module>punycode</module>
- <module>querystring</module>
- <module>readline</module>
- <module>repl</module>
- <module>stream</module>
- <module>string_decoder</module>
- <module>tls</module>
- <module>tty</module>
- <module>url</module>
- <module>util</module>
- <module>vm</module>
- <module>zlib</module>
- </named-module>
- <exclude>
- <class>Buffer</class>
- <name>toJSON</name>
- </exclude>
-
- <as-root>out/as</as-root>
-
-</flex-config>