You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2018/09/08 16:02:18 UTC

[royale-asjs] branch develop updated: continue solving differences between ANT and MAVEN build distributions

This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 214ae5d  continue solving differences between ANT and MAVEN build distributions
214ae5d is described below

commit 214ae5d2ddd770b01431fb2e3e30c9708510ecb7
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Sep 8 18:02:13 2018 +0200

    continue solving differences between ANT and MAVEN build distributions
---
 distribution/src/main/resources/js/bin/asjsc       |  2 +-
 distribution/src/main/resources/js/bin/asjsc.bat   |  2 +-
 distribution/src/main/resources/js/bin/asjscnpm    | 49 ++++++++++++++++++++++
 distribution/src/main/resources/js/bin/asjscompc   |  2 +-
 .../src/main/resources/js/bin/asjscompc.bat        |  2 +-
 .../src/main/resources/js/bin/asjscompcnpm         | 49 ++++++++++++++++++++++
 distribution/src/main/resources/js/bin/asnodec     |  2 +-
 distribution/src/main/resources/js/bin/asnodec.bat |  2 +-
 distribution/src/main/resources/js/bin/asnodecnpm  | 49 ++++++++++++++++++++++
 distribution/src/main/resources/js/bin/compc       |  2 +-
 distribution/src/main/resources/js/bin/compc.bat   |  2 +-
 distribution/src/main/resources/js/bin/compcnpm    | 49 ++++++++++++++++++++++
 distribution/src/main/resources/js/bin/externc     |  2 +-
 distribution/src/main/resources/js/bin/externc.bat |  2 +-
 distribution/src/main/resources/js/bin/externcnpm  | 49 ++++++++++++++++++++++
 distribution/src/main/resources/js/bin/jquery      |  2 +-
 distribution/src/main/resources/js/bin/jquery.bat  |  2 +-
 distribution/src/main/resources/js/bin/mxmlc       |  2 +-
 distribution/src/main/resources/js/bin/mxmlc.bat   |  2 +-
 distribution/src/main/resources/js/bin/mxmlcnpm    | 49 ++++++++++++++++++++++
 20 files changed, 308 insertions(+), 14 deletions(-)

diff --git a/distribution/src/main/resources/js/bin/asjsc b/distribution/src/main/resources/js/bin/asjsc
index 10c3c2c..0fedac4 100755
--- a/distribution/src/main/resources/js/bin/asjsc
+++ b/distribution/src/main/resources/js/bin/asjsc
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=js "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=js "$@"
diff --git a/distribution/src/main/resources/js/bin/asjsc.bat b/distribution/src/main/resources/js/bin/asjsc.bat
index e3b0e19..b88b9cc 100644
--- a/distribution/src/main/resources/js/bin/asjsc.bat
+++ b/distribution/src/main/resources/js/bin/asjsc.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=jsc +configname=js %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=jsc +configname=js %*
diff --git a/distribution/src/main/resources/js/bin/asjscnpm b/distribution/src/main/resources/js/bin/asjscnpm
new file mode 100755
index 0000000..8c9e9f8
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/asjscnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "asjsc";
+if(process.platform === "win32")
+{
+	scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+	child_process.execFileSync(scriptPath, process.argv.slice(2),
+	{
+		stdio: "inherit",
+		encoding: "utf8"
+	});
+}
+catch(error)
+{
+	if(error.status === null)
+	{
+		console.error("Error executing " + scriptName + " with code: " + error.code);
+		process.exit(1);
+	}
+	process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file
diff --git a/distribution/src/main/resources/js/bin/asjscompc b/distribution/src/main/resources/js/bin/asjscompc
index 4a12639..a4e01af 100755
--- a/distribution/src/main/resources/js/bin/asjscompc
+++ b/distribution/src/main/resources/js/bin/asjscompc
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/compc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=js "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/compc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=js "$@"
diff --git a/distribution/src/main/resources/js/bin/asjscompc.bat b/distribution/src/main/resources/js/bin/asjscompc.bat
index 41b8a64..bb88ab0 100644
--- a/distribution/src/main/resources/js/bin/asjscompc.bat
+++ b/distribution/src/main/resources/js/bin/asjscompc.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\compc.jar" -js-output-type=jsc +configname=js %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\compc.jar" -js-output-type=jsc +configname=js %*
diff --git a/distribution/src/main/resources/js/bin/asjscompcnpm b/distribution/src/main/resources/js/bin/asjscompcnpm
new file mode 100755
index 0000000..0cc2402
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/asjscompcnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "asjscompc";
+if(process.platform === "win32")
+{
+	scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+	child_process.execFileSync(scriptPath, process.argv.slice(2),
+	{
+		stdio: "inherit",
+		encoding: "utf8"
+	});
+}
+catch(error)
+{
+	if(error.status === null)
+	{
+		console.error("Error executing " + scriptName + " with code: " + error.code);
+		process.exit(1);
+	}
+	process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file
diff --git a/distribution/src/main/resources/js/bin/asnodec b/distribution/src/main/resources/js/bin/asnodec
index 4c42764..58d29fb 100755
--- a/distribution/src/main/resources/js/bin/asnodec
+++ b/distribution/src/main/resources/js/bin/asnodec
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=node +configname=node "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=node +configname=node "$@"
diff --git a/distribution/src/main/resources/js/bin/asnodec.bat b/distribution/src/main/resources/js/bin/asnodec.bat
index 5f6a379..be1ef07 100644
--- a/distribution/src/main/resources/js/bin/asnodec.bat
+++ b/distribution/src/main/resources/js/bin/asnodec.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=node +configname=node %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=node +configname=node %*
diff --git a/distribution/src/main/resources/js/bin/asnodecnpm b/distribution/src/main/resources/js/bin/asnodecnpm
new file mode 100644
index 0000000..8654736
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/asnodecnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "asnodec";
+if(process.platform === "win32")
+{
+	scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+	child_process.execFileSync(scriptPath, process.argv.slice(2),
+	{
+		stdio: "inherit",
+		encoding: "utf8"
+	});
+}
+catch(error)
+{
+	if(error.status === null)
+	{
+		console.error("Error executing " + scriptName + " with code: " + error.code);
+		process.exit(1);
+	}
+	process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file
diff --git a/distribution/src/main/resources/js/bin/compc b/distribution/src/main/resources/js/bin/compc
index 4063bb1..adab071 100755
--- a/distribution/src/main/resources/js/bin/compc
+++ b/distribution/src/main/resources/js/bin/compc
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/compc.jar" +royalelib="$ROYALE_HOME/frameworks"  -sdk-js-lib="$ROYALE_HOME/frameworks/js/Royale/generated-sources" "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/compc.jar" +royalelib="$ROYALE_HOME/frameworks"  -sdk-js-lib="$ROYALE_HOME/frameworks/js/Royale/generated-sources" "$@"
diff --git a/distribution/src/main/resources/js/bin/compc.bat b/distribution/src/main/resources/js/bin/compc.bat
index ec64b5b..fe5b69e 100644
--- a/distribution/src/main/resources/js/bin/compc.bat
+++ b/distribution/src/main/resources/js/bin/compc.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\compc.jar"  -sdk-js-lib="%ROYALE_HOME%\frameworks\js\Royale\generated-sources" %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\compc.jar"  -sdk-js-lib="%ROYALE_HOME%\frameworks\js\Royale\generated-sources" %*
diff --git a/distribution/src/main/resources/js/bin/compcnpm b/distribution/src/main/resources/js/bin/compcnpm
new file mode 100755
index 0000000..e9e22af
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/compcnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "compc";
+if(process.platform === "win32")
+{
+    scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+    child_process.execFileSync(scriptPath, process.argv.slice(2),
+    {
+        stdio: "inherit",
+        encoding: "utf8"
+    });
+}
+catch(error)
+{
+    if(error.status === null)
+    {
+        console.error("Error executing " + scriptName + " with code: " + error.code);
+        process.exit(1);
+    }
+    process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file
diff --git a/distribution/src/main/resources/js/bin/externc b/distribution/src/main/resources/js/bin/externc
index 03393fa..548e25e 100755
--- a/distribution/src/main/resources/js/bin/externc
+++ b/distribution/src/main/resources/js/bin/externc
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/externc.jar" +royalelib="$ROYALE_HOME/frameworks" "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/externc.jar" +royalelib="$ROYALE_HOME/frameworks" "$@"
diff --git a/distribution/src/main/resources/js/bin/externc.bat b/distribution/src/main/resources/js/bin/externc.bat
index c5179318..3004988 100644
--- a/distribution/src/main/resources/js/bin/externc.bat
+++ b/distribution/src/main/resources/js/bin/externc.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\externc.jar" %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\externc.jar" %*
diff --git a/distribution/src/main/resources/js/bin/externcnpm b/distribution/src/main/resources/js/bin/externcnpm
new file mode 100755
index 0000000..a6c5c3a
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/externcnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "externc";
+if(process.platform === "win32")
+{
+    scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+    child_process.execFileSync(scriptPath, process.argv.slice(2),
+    {
+        stdio: "inherit",
+        encoding: "utf8"
+    });
+}
+catch(error)
+{
+    if(error.status === null)
+    {
+        console.error("Error executing " + scriptName + " with code: " + error.code);
+        process.exit(1);
+    }
+    process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file
diff --git a/distribution/src/main/resources/js/bin/jquery b/distribution/src/main/resources/js/bin/jquery
index 0c310b3..edcf903 100755
--- a/distribution/src/main/resources/js/bin/jquery
+++ b/distribution/src/main/resources/js/bin/jquery
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=jquery "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks" -js-output-type=jsc +configname=jquery "$@"
diff --git a/distribution/src/main/resources/js/bin/jquery.bat b/distribution/src/main/resources/js/bin/jquery.bat
index 947b443..f90ee2b 100644
--- a/distribution/src/main/resources/js/bin/jquery.bat
+++ b/distribution/src/main/resources/js/bin/jquery.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=jsc +configname=jquery %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar" -js-output-type=jsc +configname=jquery %*
diff --git a/distribution/src/main/resources/js/bin/mxmlc b/distribution/src/main/resources/js/bin/mxmlc
index aa6ce34..abb1ca2 100755
--- a/distribution/src/main/resources/js/bin/mxmlc
+++ b/distribution/src/main/resources/js/bin/mxmlc
@@ -67,4 +67,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 $SETUP_SH_VMARGS  -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks"  -sdk-js-lib="$ROYALE_HOME/frameworks/js/Royale/generated-sources" "$@"
+java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalecompiler="$ROYALE_COMPILER_HOME" -Droyalelib="$ROYALE_HOME/frameworks" -jar "$SCRIPT_HOME/../lib/mxmlc.jar" +royalelib="$ROYALE_HOME/frameworks"  -sdk-js-lib="$ROYALE_HOME/frameworks/js/Royale/generated-sources" "$@"
diff --git a/distribution/src/main/resources/js/bin/mxmlc.bat b/distribution/src/main/resources/js/bin/mxmlc.bat
index d7f93f8..0bd02da 100644
--- a/distribution/src/main/resources/js/bin/mxmlc.bat
+++ b/distribution/src/main/resources/js/bin/mxmlc.bat
@@ -26,4 +26,4 @@ if "x%ROYALE_COMPILER_HOME%"=="x"  (set "ROYALE_COMPILER_HOME=%~dp0..\..") else
 
 if "x%ROYALE_HOME%"=="x" (set "ROYALE_HOME=%~dp0..\..") else echo Using Royale SDK: %ROYALE_HOME%
 
-@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m  -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar"  -sdk-js-lib="%ROYALE_HOME%\frameworks\js\Royale\generated-sources" %*
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalecompiler="%ROYALE_COMPILER_HOME%" -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\js\lib\mxmlc.jar"  -sdk-js-lib="%ROYALE_HOME%\frameworks\js\Royale\generated-sources" %*
diff --git a/distribution/src/main/resources/js/bin/mxmlcnpm b/distribution/src/main/resources/js/bin/mxmlcnpm
new file mode 100755
index 0000000..5a6c710
--- /dev/null
+++ b/distribution/src/main/resources/js/bin/mxmlcnpm
@@ -0,0 +1,49 @@
+#!/usr/bin/env node
+
+/*
+ *
+ *  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.
+ *
+ */
+
+var child_process = require("child_process");
+var path = require("path");
+
+var scriptName = "mxmlc";
+if(process.platform === "win32")
+{
+    scriptName += ".bat";
+}
+
+var scriptPath = path.join(__dirname, scriptName);
+try
+{
+    child_process.execFileSync(scriptPath, process.argv.slice(2),
+    {
+        stdio: "inherit",
+        encoding: "utf8"
+    });
+}
+catch(error)
+{
+    if(error.status === null)
+    {
+        console.error("Error executing " + scriptName + " with code: " + error.code);
+        process.exit(1);
+    }
+    process.exit(error.status);
+}
+process.exit(0);
\ No newline at end of file