You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/04/10 12:50:21 UTC

git commit: [ASJS] removed 'publisher'

Updated Branches:
  refs/heads/develop 5fdc9d859 -> a6f35a947


[ASJS] removed 'publisher'

I've deleted the "publisher" proof of concept because this functionality is now available directly in FalconJX.

Signed-off-by: Erik de Bruin <er...@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/a6f35a94
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/a6f35a94
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/a6f35a94

Branch: refs/heads/develop
Commit: a6f35a9474964863474740a608318e7dea008ecf
Parents: 5fdc9d8
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Apr 10 12:49:14 2013 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Apr 10 12:49:56 2013 +0200

----------------------------------------------------------------------
 publisher/README              |   70 ------------
 publisher/build.properties    |   32 ------
 publisher/build.xml           |  217 ------------------------------------
 publisher/index.html.template |   18 ---
 4 files changed, 0 insertions(+), 337 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a6f35a94/publisher/README
----------------------------------------------------------------------
diff --git a/publisher/README b/publisher/README
deleted file mode 100644
index 2abb5e9..0000000
--- a/publisher/README
+++ /dev/null
@@ -1,70 +0,0 @@
-ASJS Publisher
-==============
-
-    The ASJS Publisher is a tool to cross-compile projects from ActionScript (AS) 
-    to Javascript (JS). On the AS side, a project can to be built with the regular 
-	Flex SDK). The Publisher collects the project's AS code and uses the FalconJx 
-	compiler to create JS code. This JS code is then combined with the 
-	VanillaSDK JS framework using the Google Closure Builder. This tool takes all 
-	the JS files, calculates dependencies and creates one, highly optimized and 
-	minified, JS file. This one JS file is combined with a minimal HTML file and 
-	together these contain all code needed to play the project in a browser. For
-    more information, read on.
-    
-Using the Publisher
-===================
-
-Prerequisites
--------------
-
-    The ASJS Publisher relies on the Google Closure Tools:
-        
-        https://developers.google.com/closure/
-    
-    In particular it uses the Library, Compiler and Builder. In order
-    to use the Publisher on your machine, you'll have to download/install these
-    tools first.
-
-    1)  Get the Google Closure Library
-    
-            svn checkout http://closure-library.googlecode.com/svn/trunk/ library
-        
-    2)  Download the Google Closure Compiler and unzip
-        
-            http://closure-compiler.googlecode.com/files/compiler-latest.zip
-
-	3)  Get the Falcon compilers 
- 
-	 		svn checkout https://svn.apache.org/repos/asf/flex/falcon/trunk falcon
-
-	4)  The Closure Tools use Python scripts. These scripts are designed to work
-	    with Python 2.7. Make sure your system can properly execute Python 
-		scripts... For info on checking your system's capabilities and, when 
-		needed, for instructions on how to install the proper version of Python 
-		on your system, please visit:
- 
-	 		http://www.python.org/
-
-Preparing for publishing
-------------------------
-
-    1)  The ASJS Publisher uses the FalconJx compiler, which in turn needs the
-        Falcon compiler. Build both projects using the READMEs as your guide.
-    
-    2)  The Publisher is an ant script, 'build.xml', which uses 
-        'build.properties' and command line arguments to set dynamic properties. 
-        Before your run you need to edit 'build.properties' to reflect the 
-        various system specific properties.
-    
-Publishing
-----------
-
-    A full run ('main') of the ant script needs a single command line argument: 
-    project.main.file. You point this argument to the 'master' AS (no MXML yet)
-	of your project, like so:
-    
-        ant -Dproject.main.file=../examples/VanillaSDK_POC/src/Example.as
-    
-That's it, have fun!
-
-The Apache Flex Project

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a6f35a94/publisher/build.properties
----------------------------------------------------------------------
diff --git a/publisher/build.properties b/publisher/build.properties
deleted file mode 100644
index f56977b..0000000
--- a/publisher/build.properties
+++ /dev/null
@@ -1,32 +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.
-##
-################################################################################
-
-# NOTE: on Windows, use FORWARD slashes instead of the regular backslashes.
-
-# Location of the Google Closure Compiler
-DIR_CLOSURE_COMPILER=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/compiler
-
-# Location of the Google Closure Library
-DIR_CLOSURE_LIBRARY=/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library
-
-# Location of the Vanilla SDK framework
-DIR_FRAMEWORK=/Users/erik/Documents/ApacheFlex/repo/asjs/frameworks/js/VanillaSDK
-
-# Location of the FalconJx mxmlc script (on Windows, don't include the .bat extension)
-FILE_FALCONJX_COMPILE_SCRIPT=/Users/erik/Documents/ApacheFlex/repo/falcon/compiler.jx/bin/mxmlc

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a6f35a94/publisher/build.xml
----------------------------------------------------------------------
diff --git a/publisher/build.xml b/publisher/build.xml
deleted file mode 100644
index d12118e..0000000
--- a/publisher/build.xml
+++ /dev/null
@@ -1,217 +0,0 @@
-<?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="asjsPublisher" default="main" basedir=".">
-    <property file="${basedir}/build.properties" 
-        description="Properties for the ASJS Publisher" />
-
-    <condition property="isWindows">
-        <os family="windows" />
-    </condition>
-    
-    <basename property="PROJECT_NAME" 
-        file="${project.main.file}" suffix=".as" />
-    
-    <dirname property="DIR_PROJECT" 
-        file="${project.main.file}/.." />
-
-    <property name="DIR_CLOSURE_THIRD_PARTY" 
-        location="${DIR_CLOSURE_LIBRARY}/third_party/closure/goog" />
-    <property name="DIR_CLOSURE_SCRIPTS" 
-        location="${DIR_CLOSURE_LIBRARY}/closure/bin/build" />
-    
-    <property name="DIR_INTERMEDIATE_APPLICATION" 
-        location="${DIR_PROJECT}/js-intermediate" />
-    <property name="DIR_RELEASE_APPLICATION" 
-        location="${DIR_PROJECT}/js-release" />
-
-    <property name="FILE_DEPS" 
-        location="${DIR_INTERMEDIATE_APPLICATION}/deps.js" />
-    <property name="FILE_HTML_TEMPLATE" 
-        location="index.html.template" />
-    <property name="FILE_OUTPUT_MAIN" 
-        location="${DIR_INTERMEDIATE_APPLICATION}/${PROJECT_NAME}.js" />
-
-    <macrodef name="depsWriter">
-        <sequential>
-            <exec executable="python" failonerror="true" logError="true">
-                <arg value="${DIR_CLOSURE_SCRIPTS}/depswriter.py" />
-                <arg line="--root=${DIR_INTERMEDIATE_APPLICATION}" />
-                <arg line="--root_with_prefix='${DIR_INTERMEDIATE_APPLICATION}/goog goog'" />
-                <arg line="--root_with_prefix='${DIR_INTERMEDIATE_APPLICATION}/goog_thirdParty goog_thirdParty'" />
-                <arg line="--root_with_prefix='${DIR_INTERMEDIATE_APPLICATION}/VanillaSDK VanillaSDK'" />
-                <arg line="--output_file=${FILE_DEPS}" />
-            </exec>
-        </sequential>
-    </macrodef>
-
-    <macrodef name="closureBuilder">
-        <sequential>
-            <exec executable="python" failonerror="true" logError="true">
-                <arg value="${DIR_CLOSURE_SCRIPTS}/closurebuilder.py" />
-                <arg line="--compiler_jar=${DIR_CLOSURE_COMPILER}/compiler.jar" />
-                <arg line="--root=${DIR_INTERMEDIATE_APPLICATION}" />
-                <arg line="--output_mode=compiled" />
-                <arg line="--output_file=${DIR_RELEASE_APPLICATION}/${PROJECT_NAME}.js" />
-                <arg line="--compiler_flags=--compilation_level=ADVANCED_OPTIMIZATIONS" />
-                <arg line="--compiler_flags=--js=${FILE_DEPS}" />
-                <arg line="--compiler_flags=--warning_level=VERBOSE" />
-                <arg line="--namespace=${PROJECT_NAME}" />
-                <arg line="--compiler_flags=--jscomp_error=checkTypes" />
-            </exec>
-        </sequential>
-    </macrodef>
-
-    <target name="main" description="Compiles framework files" 
-        depends="clean,createDirs,prepareOutput,falconJx,calculateDependencies,
-            closureBuilding,createIntermediateOutput,createReleaseOutput" />
-    
-    <target name="createDirs">
-        <echo>Create 'intermediate' and 'release' directory structure</echo>
-        <mkdir dir="${DIR_INTERMEDIATE_APPLICATION}" />
-        <mkdir dir="${DIR_RELEASE_APPLICATION}" />
-    </target>
-
-    <target name="prepareOutput">
-        <echo>
-            Creating 'intermediate' and 'release' target directory requirements
-        </echo>
-        <copy todir="${DIR_INTERMEDIATE_APPLICATION}/goog">
-            <fileset dir="${DIR_CLOSURE_LIBRARY}/closure/goog" />
-        </copy>
-        <copy todir="${DIR_INTERMEDIATE_APPLICATION}/goog_thirdParty">
-            <fileset dir="${DIR_CLOSURE_LIBRARY}/third_party/closure/goog" />
-        </copy>
-        <copy todir="${DIR_INTERMEDIATE_APPLICATION}/VanillaSDK">
-            <fileset dir="${DIR_FRAMEWORK}"/>
-        </copy>
-    </target>
-
-    <target name="ifWindows" if="isWindows">
-        <property name="FILE_SUFFIX" value=".bat" />
-    </target>
-
-    <target name="ifOtherOS" unless="isWindows">
-        <property name="FILE_SUFFIX" value="" />
-    </target>
-
-    <target name="falconJx" depends="ifWindows,ifOtherOS">
-        <echo>Compiling the AS project into intermediate JS</echo>
-        <exec executable="${FILE_FALCONJX_COMPILE_SCRIPT}${FILE_SUFFIX}">
-            <arg value="${DIR_PROJECT}/src/${PROJECT_NAME}.as"/>
-            <arg value="-output=${FILE_OUTPUT_MAIN}"/>
-        </exec>
-        <!-- 
-            # Making sure that the main class' name doesn't get renamed 
-              during the compile, which would invalidate the call to it 
-              in the project's HTML
-        -->
-        <echo file="${FILE_OUTPUT_MAIN}" append="true">
-<![CDATA[
-// Ensures the symbol will be visible after compiler renaming.
-goog.exportSymbol('${PROJECT_NAME}', ${PROJECT_NAME});
-]]>
-        </echo>
-    </target>
-
-    <target name="calculateDependencies">
-        <echo>Calculating dependencies and writing them to 'deps.js'</echo>
-        <depsWriter />
-    </target>
-
-    <target name="closureBuilding">
-        <echo>Creating combined and compiled output JS</echo>
-        <closureBuilder />
-    </target>
-
-    <target name="createIntermediateOutput">
-        <echo>Creating 'intermediate' playback project</echo>
-        <copy file="${FILE_HTML_TEMPLATE}" 
-            tofile="${DIR_INTERMEDIATE_APPLICATION}/${PROJECT_NAME}.html" 
-            overwrite="true" />
-        <move file="${DIR_INTERMEDIATE_APPLICATION}/goog/base.js" 
-            todir="${DIR_INTERMEDIATE_APPLICATION}" />
-        <echo file="${DIR_INTERMEDIATE_APPLICATION}/${PROJECT_NAME}.html"><![CDATA[
-<!DOCTYPE html>
-<html>
-<head>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
-    <script type="text/javascript" src="./base.js"></script>
-    <script type="text/javascript">
-        goog.require("${PROJECT_NAME}");
-    </script>
-</head>
-<body>
-    <script type="text/javascript">
-        new ${PROJECT_NAME}();
-    </script>
-</body>
-</html>
-        ]]></echo>
-    </target>
-
-    <target name="createReleaseOutput">
-        <echo>Creating 'release' playback project</echo>
-        <copy file="${FILE_HTML_TEMPLATE}" 
-            tofile="${DIR_RELEASE_APPLICATION}/${PROJECT_NAME}.html" 
-            overwrite="true" />
-        <echo file="${DIR_RELEASE_APPLICATION}/${PROJECT_NAME}.html"><![CDATA[
-<!DOCTYPE html>
-<html>
-<head>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
-    <script type="text/javascript" src="./${PROJECT_NAME}.js"></script>
-</head>
-<body>
-    <script type="text/javascript">
-        new ${PROJECT_NAME}();
-    </script>
-</body>
-</html>
-        ]]></echo>
-    </target>
-
-    <!--
-
-        CLEANUP
-
-    -->
-
-    <target name="clean" description="Clean up previous runs" 
-        depends="cleanIntermediate,cleanRelease">
-        <echo>Delete 'intermediate' and 'release' directories</echo>
-    </target>
-
-    <target name="cleanIntermediate">
-        <delete failonerror="false" includeemptydirs="true">
-            <fileset dir="${DIR_INTERMEDIATE_APPLICATION}" />
-		</delete>
-    </target>
-
-    <target name="cleanRelease">
-        <delete failonerror="false" includeemptydirs="true">
-            <fileset dir="${DIR_RELEASE_APPLICATION}" />
-		</delete>
-    </target>
-
-</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a6f35a94/publisher/index.html.template
----------------------------------------------------------------------
diff --git a/publisher/index.html.template b/publisher/index.html.template
deleted file mode 100644
index 8fa211c..0000000
--- a/publisher/index.html.template
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-
-    <@RELEASE_OPEN@script type="text/javascript" src="./@APPLICATION_NAME@.js"></script@RELEASE_CLOSE@>
-    <@INTERMEDIATE_OPEN@script type="text/javascript" src="./base.js"></script>
-    <script type="text/javascript">
-        goog.require("@APPLICATION_NAME@");
-    </script@INTERMEDIATE_CLOSE@>
-</head>
-<body>
-    <script type="text/javascript">
-        new @APPLICATION_NAME@();
-    </script>
-</body>
-</html>