Repository: flex-asjs
Updated Branches:
  refs/heads/develop 517a29723 -> 6d4241e2a


Add mxmlc(.bat) with VF2JS paths.

Signed-off-by: Erik de Bruin <e...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6b7ba06a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6b7ba06a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6b7ba06a

Branch: refs/heads/develop
Commit: 6b7ba06ab6874341d90a98b9d08cba1b9eccde9f
Parents: 517a297
Author: Erik de Bruin <e...@ixsoftware.nl>
Authored: Sun Aug 3 12:15:14 2014 +0200
Committer: Erik de Bruin <e...@ixsoftware.nl>
Committed: Sun Aug 3 12:15:14 2014 +0200

----------------------------------------------------------------------
 vf2js/js/vf2js/falconjx/bin/mxmlc     | 62 ++++++++++++++++++++++++++++++
 vf2js/js/vf2js/falconjx/bin/mxmlc.bat | 31 +++++++++++++++
 2 files changed, 93 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6b7ba06a/vf2js/js/vf2js/falconjx/bin/mxmlc
----------------------------------------------------------------------
diff --git a/vf2js/js/vf2js/falconjx/bin/mxmlc 
b/vf2js/js/vf2js/falconjx/bin/mxmlc
new file mode 100755
index 0000000..05df71b
--- /dev/null
+++ b/vf2js/js/vf2js/falconjx/bin/mxmlc
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+################################################################################
+##
+##  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.
+##
+################################################################################
+
+
+#
+# mxmlc shell script to launch FalconJX mxmlc.jar on OSX, Unix, or Cygwin.
+# In Windows Command Prompt, use mxmlc.bat instead.
+#
+
+FLEX_HOME=`dirname $0`/../../../..
+FALCON_HOME=$FLEX_HOME/js/vf2js
+
+echo Using Flex SDK: $FLEX_HOME
+echo Using Falcon compiler: $FALCON_HOME
+
+case `uname` in
+               CYGWIN*)
+                       OS="Windows"
+               ;;
+               *)
+                       OS=Unix
+esac
+
+D32=''
+
+if [ $OS = "Windows" ]; then
+
+       FALCON_HOME=`cygpath -m $FALCON_HOME`
+       FLEX_HOME=`cygpath -m $FLEX_HOME`
+
+elif [ $OS = "Unix" ]; then
+
+    check64="`java -version 2>&1 | grep -i 64-Bit`"
+    isOSX="`uname | grep -i Darwin`"
+    javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." 
$4}'`"
+    
+    if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a 
"$javaVersion" = "1.6" ]; then
+        D32='-d32'
+    fi 
+fi
+
+VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
+
+java $VMARGS $D32 -Dflexcompiler="$FALCON_HOME" -jar 
"$FLEX_HOME/js/vf2js/falconjx/lib/mxmlc.jar" 
-load-config="$FLEX_HOME/frameworks/flex-config.xml" -js-output-type=VF2JS 
-sdk-js-lib="$FLEX_HOME/frameworks/js/src" "$@"

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6b7ba06a/vf2js/js/vf2js/falconjx/bin/mxmlc.bat
----------------------------------------------------------------------
diff --git a/vf2js/js/vf2js/falconjx/bin/mxmlc.bat 
b/vf2js/js/vf2js/falconjx/bin/mxmlc.bat
new file mode 100644
index 0000000..950bdfa
--- /dev/null
+++ b/vf2js/js/vf2js/falconjx/bin/mxmlc.bat
@@ -0,0 +1,31 @@
+@echo off
+
+rem
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+rem contributor license agreements.  See the NOTICE file distributed with
+rem this work for additional information regarding copyright ownership.
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+rem (the "License"); you may not use this file except in compliance with
+rem the License.  You may obtain a copy of the License at
+rem
+rem     http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+rem
+
+rem
+rem mxmlc.bat script to launch FalconJX mxmlc.jar in Windows Command Prompt.
+rem On OSX, Unix, or Cygwin, use the mxmlc shell script instead.
+rem
+
+set FLEX_HOME=%~dp0..\..\..\..
+set FALCON_HOME=%FLEX_HOME%\js\vf2js
+
+echo Using Flex SDK: %FLEX_HOME%
+echo Using Falcon compiler: %FALCON_HOME%
+
+@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m 
-Dflexcompiler="%FALCON_HOME%" -jar 
"$FLEX_HOME\js\vf2js\falconjx\lib\mxmlc.jar" 
-load-config="$FLEX_HOME\frameworks\flex-config.xml" -js-output-type=VF2JS 
-sdk-js-lib="$FLEX_HOME\frameworks\js\src" %*
\ No newline at end of file

Reply via email to