Awesome!

Does this compile yet?

> On Nov 13, 2017, at 6:27 PM, [email protected] wrote:
> 
> This is an automated email from the ASF dual-hosted git repository.
> 
> erikdebruin 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 e036dd3  [WAST] batch script for WASTC and an early example project
> e036dd3 is described below
> 
> commit e036dd345ba0c37b80bef09798c9c957a6088ee7
> Author: Erik de Bruin <[email protected]>
> AuthorDate: Mon Nov 13 17:27:07 2017 +0100
> 
>    [WAST] batch script for WASTC and an early example project
> 
>    Signed-off-by: Erik de Bruin <[email protected]>
> ---
> wast/bin/wastc                             | 72 ++++++++++++++++++++++++++++++
> wast/examples/HelloWorld/src/HelloWorld.as | 29 ++++++++++++
> 2 files changed, 101 insertions(+)
> 
> diff --git a/wast/bin/wastc b/wast/bin/wastc
> new file mode 100755
> index 0000000..fd77d19
> --- /dev/null
> +++ b/wast/bin/wastc
> @@ -0,0 +1,72 @@
> +#!/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.
> +##
> +################################################################################
> +
> +
> +#
> +# wastc shell script to launch wastc.jar on OSX, Unix, or Cygwin.
> +#
> +
> +SCRIPT_HOME=`dirname "$0"`
> +
> +test "$FLEX_HOME" = "" && {
> +    FLEX_HOME=`dirname "$0"`/../..
> +}
> +
> +for i in "$@"
> +do
> +case $i in
> +    -t=*|--target-player=*)
> +    TARGET_PLAYER="${i#*=}"
> +    shift
> +    ;;
> +    *) # unknown option
> +    ;;
> +esac
> +done
> +
> +test "$TARGET_PLAYER" = "" && {
> +    TARGET_PLAYER=11.1
> +}
> +
> +case `uname` in
> +             CYGWIN*)
> +                     OS="Windows"
> +             ;;
> +             *)
> +                     OS=Unix
> +esac
> +
> +D32=''
> +
> +if [ $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 -jar "${SCRIPT_HOME}/../lib/wastc.jar" 
> -external-library-path="${FLEX_HOME}/frameworks/libs/player/${TARGET_PLAYER}/playerglobal.swc"
>  "$@"
> diff --git a/wast/examples/HelloWorld/src/HelloWorld.as 
> b/wast/examples/HelloWorld/src/HelloWorld.as
> new file mode 100644
> index 0000000..b2d2c36
> --- /dev/null
> +++ b/wast/examples/HelloWorld/src/HelloWorld.as
> @@ -0,0 +1,29 @@
> +////////////////////////////////////////////////////////////////////////////////
> +//
> +//  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.
> +//
> +////////////////////////////////////////////////////////////////////////////////
> +
> +package
> +{
> +     public class HelloWorld
> +     {
> +             public function HelloWorld()
> +             {
> +                     trace('Hello world ;-)');
> +             }
> +     }
> +}
> \ No newline at end of file
> 
> -- 
> To stop receiving notification emails like this one, please contact
> ['"[email protected]" <[email protected]>'].

Reply via email to