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 2013/11/25 07:59:12 UTC
[02/18] git commit: [flex-asjs] [refs/heads/develop] - mucking with
FlexJS build to make it more Apache-like
mucking with FlexJS build to make it more Apache-like
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/102b167f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/102b167f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/102b167f
Branch: refs/heads/develop
Commit: 102b167f313d9a2da8387a5c32a4f83dafe8e010
Parents: 6849d4c
Author: Alex Harui <ah...@apache.org>
Authored: Wed Nov 20 11:17:26 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Nov 20 11:17:26 2013 -0800
----------------------------------------------------------------------
build.xml | 63 ++--
examples/DataBindingTest/build.xml | 175 ++++++++++
examples/build.xml | 122 +++++++
frameworks/air-config.xml | 351 ++++++++++++++++++++
frameworks/as/air-config-template.xml | 351 ++++++++++++++++++++
frameworks/as/air-config.xml | 354 ---------------------
frameworks/as/build.xml | 14 +-
frameworks/as/downloads.xml | 84 +++++
frameworks/as/flex-config-template.xml | 11 +-
frameworks/as/projects/FlexJSUI/build.xml | 9 +-
frameworks/as/projects/MXMLCClasses/build.xml | 7 +-
frameworks/flex-config.xml | 353 ++++++++++++++++++++
12 files changed, 1503 insertions(+), 391 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 8ff7fbd..dff25eb 100644
--- a/build.xml
+++ b/build.xml
@@ -38,7 +38,6 @@
<property environment="env"/>
<property file="${FLEXJS_HOME}/local.properties"/>
<property file="${FLEXJS_HOME}/build.properties"/>
- <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
<property name="debug" value="true"/>
<property name="strict" value="true"/>
@@ -85,7 +84,7 @@
This does not build the docs. Use doc-packages or asdoc-packages.
-->
<target name="release"
- depends="check-compile-env,check-runtime-env,check-falcon-home,source-release,binary-release,rat-check"
+ depends="check-compile-env,check-runtime-env,check-falcon-home,check-falconjx-home,source-release,binary-release,rat-check"
description="Creates source and binary kits for Apache FlexJS."/>
<target name="source-release"
@@ -127,10 +126,10 @@
<property name="build.noprompt" value="set" />
</target>
- <target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description"
+ <target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description,create-config"
description="Stuff that needs to be done before any builds." />
- <target name="check-compile-env" depends="check-playerglobal-home,check-air-home,check-flex-home"
+ <target name="check-compile-env" depends="check-playerglobal-home,check-air-home,check-flex-home,check-falcon-home,check-falconjx-home"
description="Check for the required environment variables for compilation.">
<echo>OS: ${os.name} / ${os.version} / ${os.arch}</echo>
<echo>VM: ${java.vm.name} / ${java.vm.version}</echo>
@@ -188,10 +187,11 @@
<available file="${env.FLEX_HOME}"
type="dir"
- property="FLEX_HOME.set"/>
+ property="FLEX_SDK_HOME"
+ value="${env.FLEX_HOME}" />
<fail message="The environment variable FLEX_HOME is not set to a directory"
- unless="FLEX_HOME.set"/>
+ unless="FLEX_SDK_HOME"/>
<condition property="mxmlc.jar.exists">
<available file="${env.FLEX_HOME}/lib/mxmlc.jar" type="file"/>
@@ -206,20 +206,29 @@
<echo message="FALCON_HOME is ${env.FALCON_HOME}"/>
- <available file="${env.FALCON_HOME}/compiler.jx"
- type="dir"
- property="FALCON_HOME"
- value="${env.FALCON_HOME}"/>
-
<available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
type="file"
property="FALCON_HOME"
- value="${env.FALCON_HOME}/../../../.."/>
+ value="${env.FALCON_HOME}"/>
- <fail message="FALCON_HOME must be set to a flex-falcon repo for a release build or compiler/generated/dist/sdk folder in flex-falcon repo"
+ <fail message="FALCON_HOME must be set to a folder with a lib sub-folder containing falcon-mxmlc.jar such as the compiler/generated/dist/sdk folder in flex-falcon repo or this folder if it has been converted into an FB-compatible SDK"
unless="FALCON_HOME"/>
</target>
+ <target name="check-falconjx-home" unless="FALCONJX_HOME"
+ description="Check FALCON_HOME is a directory.">
+
+ <echo message="FALCONJX_HOME is ${env.FALCONJX_HOME}"/>
+
+ <available file="${env.FALCONJX_HOME}/lib/jsc.jar"
+ type="file"
+ property="FALCONJX_HOME"
+ value="${env.FALCONJX_HOME}"/>
+
+ <fail message="FALCONJX_HOME must be set to a folder with a lib sub-folder containing jsc.jar such as the compiler.jx folder in flex-falcon repo or the js folder if it has been converted into an FB-compatible SDK"
+ unless="FALCONJX_HOME"/>
+ </target>
+
<target name="create-description" description="Generate flex-sdk-description.xml">
<tstamp>
<format property="build.number.date" pattern="yyyyMMdd" />
@@ -254,6 +263,7 @@
<target name="create-config" description="Create flex config file">
<ant dir="${basedir}/frameworks/as" target="flex-config" />
+ <ant dir="${basedir}/frameworks/as" target="air-config" />
</target>
<target name="setup-binary-release" depends="thirdparty-clean"
@@ -304,7 +314,7 @@
</target>
<target name="examples-clean">
- <!--<ant dir="${basedir}/examples" target="clean"/>-->
+ <ant dir="${basedir}/examples" target="clean"/>
</target>
<target name="frameworks-as-clean">
@@ -331,8 +341,9 @@
Build Examples
-->
- <target name="examples" description="Build the examples">
- <!--<ant dir="${basedir}/examples"/>-->
+ <target name="examples" description="Build the examples"
+ depends="prebuild">
+ <ant dir="${basedir}/examples"/>
</target>
<!--
@@ -370,7 +381,7 @@
</fileset>
</javadoc>
<mkdir dir="${basedir}/out"/>
- <zip destfile="${basedir}/out/${kit.prefix}-compiler-api-javadocs.zip" basedir="${FLEX_HOME}/javadoc"/>
+ <zip destfile="${basedir}/out/${kit.prefix}-compiler-api-javadocs.zip" basedir="${FLEXJS_HOME}/javadoc"/>
<delete dir="${basedir}/javadoc" failonerror="false" includeEmptyDirs="true"/>
</target>
@@ -428,7 +439,7 @@
<include name="READme"/>
<include name="RELEASE_NOTES"/>
</fileset>
- <fileset dir="${FLEX_HOME}">
+ <fileset dir="${FLEX_SDK_HOME}">
<include name="LICENSE"/>
<include name="NOTICE"/>
</fileset>
@@ -568,28 +579,28 @@
<target name="stage-falcon">
<copy todir="${basedir}/temp/bin" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/bin">
+ <fileset dir="${FALCON_HOME}/bin">
<include name="*"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
</fileset>
</copy>
<copy todir="${basedir}/temp/bin-legacy" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/bin-legacy">
+ <fileset dir="${FALCON_HOME}/bin-legacy">
<include name="*"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
</fileset>
</copy>
<copy todir="${basedir}/temp/ant/lib" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/ant/lib">
+ <fileset dir="${FALCON_HOME}/ant/lib">
<include name="*"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
</fileset>
</copy>
<copy todir="${basedir}/temp/lib" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/lib">
+ <fileset dir="${FALCON_HOME}/lib">
<include name="**"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
@@ -618,7 +629,7 @@
<target name="stage-falconjx">
<!-- modules -->
<copy todir="${basedir}/temp/js/bin" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler.jx/bin">
+ <fileset dir="${FALCONJX_HOME}/bin">
<include name="**"/>
<exclude name="thirdparty/**"/>
<exclude name=".metadata/**"/>
@@ -641,7 +652,7 @@
<!-- modules/thirdparty -->
<copy todir="${basedir}/temp/js/lib" includeEmptyDirs="true">
- <fileset dir="${FALCON_HOME}/compiler.jx/lib">
+ <fileset dir="${FALCONJX_HOME}/lib">
<include name="**"/>
<exclude name="**/classes/**"/>
<exclude name="**/.classpath"/>
@@ -680,7 +691,7 @@
<!-- concat the license file with the binary license file for the 3rd party deps -->
<!--concat destfile="${basedir}/temp/LICENSE">
- <filelist dir="${FLEX_HOME}" files="LICENSE,LICENSE.bin"/>
+ <filelist dir="${FLEX_SDK_HOME}" files="LICENSE,LICENSE.bin"/>
</concat-->
<!-- frameworks/libs -->
@@ -827,7 +838,7 @@
<replaceregexp>
<regexp pattern='"[0-9].[0-9].[0-9].[0-9]";'/>
<substitution expression='"${release.version}.${build.number.date}";'/>
- <fileset dir="${FLEX_HOME}/temp/frameworks/projects">
+ <fileset dir="${FLEXJS_HOME}/temp/frameworks/projects">
<include name="**/Version.as"/>
</fileset>
</replaceregexp>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/examples/DataBindingTest/build.xml
----------------------------------------------------------------------
diff --git a/examples/DataBindingTest/build.xml b/examples/DataBindingTest/build.xml
new file mode 100644
index 0000000..7b4c336
--- /dev/null
+++ b/examples/DataBindingTest/build.xml
@@ -0,0 +1,175 @@
+<?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="databindingtest" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <target name="main" depends="clean,compile" description="Clean build of FlexJSUI.swc">
+ </target>
+
+ <target name="clean">
+ <delete dir="${basedir}/bin" failonerror="false" />
+ <delete dir="${basedir}/bin-debug" failonerror="false" />
+ <delete dir="${basedir}/bin-release" failonerror="false" />
+ </target>
+
+ <path id="lib.path">
+ <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+ </path>
+
+ <target name="compile" description="Compiles DataBindingTest">
+ <echo message="Compiling DataBindingTest.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+
+ <!-- Load the <compc> task. We can't do this at the <project> level -->
+ <!-- because targets that run before flexTasks.jar gets built would fail. -->
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in FlexJSUIClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <mxmlc fork="true"
+ file="${basedir}/src/DataBindingTest.mxml"
+ output="${basedir}/bin-debug/DataBindingTest.swf">
+ <jvmarg line="${mxmlc.jvm.args}"/>
+ <arg value="+flexlib=${basedir}/frameworks" />
+ <arg value="-debug" />
+ <arg value="-compiler.mxml.children-as-data" />
+ <arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" />
+ <arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" />
+ <arg value="-compiler.binding-value-change-event-type=valueChange" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ </mxmlc>
+
+ <html-wrapper
+ height="300"
+ width="400"
+ bgcolor="#ffffff"
+ name="DataBindingTest"
+ versionmajor="11"
+ versionminor="1"
+ versionrevision="0"
+ output="${basedir}/bin-debug"/>
+
+ </target>
+
+ <macrodef name="html-wrapper">
+ <attribute name="width"/>
+ <attribute name="height"/>
+ <attribute name="bgcolor"/>
+ <attribute name="name"/>
+ <attribute name="versionmajor"/>
+ <attribute name="versionminor"/>
+ <attribute name="versionrevision"/>
+ <attribute name="output"/>
+ <sequential>
+ <copy toFile="@{output}/@{name}.html"
+ file="${FLEXJS_HOME}/templates/swfobject/index.template.html" />
+ <copy toDir="@{output}/history">
+ <fileset dir="${FLEXJS_HOME}/templates/swfobject/history">
+ <include name="**"/>
+ </fileset>
+ </copy>
+ <copy toDir="@{output}">
+ <fileset dir="${FLEXJS_HOME}/templates/swfobject">
+ <include name="*"/>
+ <exclude name="index.template.html"/>
+ </fileset>
+ </copy>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${title}"
+ value="@{name}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${bgcolor}"
+ value="@{bgcolor}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${useBrowserHistory}"
+ value="--"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${version_major}"
+ value="@{versionmajor}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${version_minor}"
+ value="@{versionminor}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${version_revision}"
+ value="@{versionrevision}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${expressInstallSwf}"
+ value="expressInstall.swf"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${expressInstallSwf}"
+ value="expressInstall.swf"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${width}"
+ value="@{width}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${height}"
+ value="@{height}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${application}"
+ value="@{name}"/>
+ </replace>
+ <replace file="@{output}/@{name}.html">
+ <replacefilter
+ token="$${swf}"
+ value="@{name}"/>
+ </replace>
+ </sequential>
+ </macrodef>
+
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
new file mode 100644
index 0000000..0ba6baa
--- /dev/null
+++ b/examples/build.xml
@@ -0,0 +1,122 @@
+<?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.
+
+-->
+
+<!-- Note:
+ If you modify this file you may have to make the same change in build_framework.xml.
+ build_framework.xml is renamed to build.xml when it is packaged.
+ It is used to build the frameworks directory from the zip file.
+-->
+<project name="examples" default="main" basedir=".">
+
+ <property name="FLEXJS_HOME" location=".."/>
+
+ <!-- Required for OSX 10.6 / Snow Leopard Performance. -->
+ <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
+ <!-- local.d32 is set/used in build.properties so this needs to be done first. -->
+ <condition property="local.d32" value="-d32">
+ <and>
+ <os family="mac"/>
+ <matches pattern="1.6.*" string="${java.version}"/>
+ <equals arg1="${sun.arch.data.model}" arg2="64"/>
+ <equals arg1="${os.arch}" arg2="x86_64"/>
+ </and>
+ </condition>
+
+ <!-- Property for the platform. -->
+ <condition property="isMac">
+ <os family="mac"/>
+ </condition>
+ <condition property="isWindows">
+ <os family="windows" />
+ </condition>
+ <condition property="isLinux">
+ <and>
+ <os family="unix"/>
+ <not>
+ <os family="mac"/>
+ </not>
+ </and>
+ </condition>
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+
+ <target name="main" depends="check-compile-env,clean,prepare,compile"
+ description="Clean build of all examples"/>
+
+ <target name="check-compile-env" description="Check for the required environment variables">
+ <ant antfile="${FLEXJS_HOME}/build.xml" target="check-compile-env" dir="${FLEXJS_HOME}"/>
+ </target>
+
+
+ <target name="prepare" depends="thirdparty-downloads"/>
+
+ <target name="thirdparty-downloads" unless="no.thirdparty-downloads" description="Downloads all the required thirdparty code.">
+ <!--<ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>-->
+ </target>
+
+ <target name="compile" description="Compile Examples">
+ <ant dir="${basedir}/DataBindingTest"/>
+ <!--
+ <ant dir="${basedir}/DataGridExample"/>
+ <ant dir="${basedir}/FlexJSTest_again"/>
+ <ant dir="${basedir}/FlexJSTest_basic"/>
+ <ant dir="${basedir}/FlexJSTest_createjs"/>
+ <ant dir="${basedir}/FlexJSTest_HTML5"/>
+ <ant dir="${basedir}/FlexJSTest_jquery"/>
+ <ant dir="${basedir}/FlexJSTest_Panel"/>
+ <ant dir="${basedir}/FlexJSTest_SVG"/>
+ <ant dir="${basedir}/LanguageTests"/>
+ <ant dir="${basedir}/ListsTest"/>
+ <ant dir="${basedir}/StatesTest"/>
+ <ant dir="${basedir}/StockQuote"/>
+ -->
+ </target>
+
+ <!--
+ Cleanup
+ -->
+
+ <target name="super-clean" depends="thirdparty-clean,clean" description="Cleans everything including thirdparty downloads."/>
+
+ <target name="thirdparty-clean" unless="no.thirdparty-clean" description="Removes all thirdparty downloads.">
+ <!--<ant antfile="${basedir}/downloads.xml" target="clean" dir="${basedir}"/>-->
+ </target>
+
+ <target name="clean" description="Cleans all SWCs and their resource bundles">
+ <ant dir="${basedir}/DataBindingTest" target="clean"/>
+ <!--
+ <ant dir="${basedir}/DataGridExample" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_again" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_basic" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_createjs" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_HTML5" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_jquery" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_Panel" target="clean"/>
+ <ant dir="${basedir}/FlexJSTest_SVG" target="clean"/>
+ <ant dir="${basedir}/LanguageTests" target="clean"/>
+ <ant dir="${basedir}/ListsTest" target="clean"/>
+ <ant dir="${basedir}/StatesTest" target="clean"/>
+ <ant dir="${basedir}/StockQuote" target="clean"/>
+ -->
+ </target>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/air-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/air-config.xml b/frameworks/air-config.xml
new file mode 100644
index 0000000..3df56ac
--- /dev/null
+++ b/frameworks/air-config.xml
@@ -0,0 +1,351 @@
+<?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.
+
+-->
+
+
+<flex-config>
+ <!-- Specifies the minimum player version that will run the compiled SWF. -->
+ <target-player>11.1</target-player>
+
+ <!-- Specifies the version of the compiled SWF -->
+ <swf-version>14</swf-version>
+
+ <compiler>
+
+ <!-- Turn on generation of accessible SWFs. -->
+ <accessible>true</accessible>
+
+ <!-- Specifies the locales for internationalization. -->
+ <locale>
+ <locale-element>en_US</locale-element>
+ </locale>
+
+ <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
+ <!-- not set -->
+ <!--
+ <source-path>
+ <path-element>string</path-element>
+ </source-path>
+ -->
+
+ <!-- Allow the source-path to have path-elements which contain other path-elements -->
+ <allow-source-path-overlap>false</allow-source-path-overlap>
+
+ <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
+ <!-- code. -->
+ <show-actionscript-warnings>true</show-actionscript-warnings>
+
+ <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
+ <!-- but true by default for compc. -->
+ <!--
+ <debug>true</debug>
+ -->
+
+ <!-- List of SWC files or directories to compile against but to omit from -->
+ <!-- linking. -->
+ <external-library-path>
+ <path-element>{airHome}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
+ <!-- the compiler during mxml translation and are helpful with understanding and -->
+ <!-- debugging Flex applications. -->
+ <keep-generated-actionscript>false</keep-generated-actionscript>
+
+ <!-- not set -->
+ <!--
+ <include-libraries>
+ <library>string</library>
+ </include-libraries>
+ -->
+
+ <!-- List of SWC files or directories that contain SWC files. -->
+ <library-path>
+ <path-element>as/libs</path-element>
+ <path-element>{airHome}/frameworks/libs/air</path-element>
+ </library-path>
+
+ <namespaces>
+ <!-- Specify a URI to associate with a manifest of components for use as MXML -->
+ <!-- elements. -->
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+
+ <manifest>as/projects/FlexJSUI/basic-manifest.xml</manifest>
+
+ </namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/html5</uri>
+
+ <manifest>as/projects/FlexJSUI/html5-manifest.xml</manifest>
+
+ </namespace>
+ </namespaces>
+
+ <!-- Enable post-link SWF optimization. -->
+ <optimize>true</optimize>
+
+ <!-- Keep the following AS3 metadata in the bytecodes. -->
+ <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
+ <!-- the following metadata must be kept: -->
+ <!-- 1. Bindable -->
+ <!-- 2. Managed -->
+ <!-- 3. ChangeEvent -->
+ <!-- 4. NonCommittingChangeEvent -->
+ <!-- 5. Transient -->
+ <!--
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+ -->
+
+ <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
+ <!-- will not be able to detect assignments to "foo". -->
+ <show-binding-warnings>true</show-binding-warnings>
+
+ <!-- toggle whether warnings generated from unused type selectors are displayed -->
+ <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
+
+ <!-- Run the AS3 compiler in strict error checking mode. -->
+ <strict>true</strict>
+
+ <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
+ <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
+ <!-- (-strict is recommended, but not required, for earlier errors) -->
+ <as3>true</as3>
+
+ <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
+ <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
+ <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
+ <!-- references to dynamic properties) -->
+ <es>false</es>
+
+ <!-- List of CSS or SWC files to apply as a theme. -->
+ <!-- not set -->
+ <!--
+ <theme>
+ <filename>string</filename>
+ <filename>string</filename>
+ </theme>
+ -->
+
+ <!-- Turns on the display of stack traces for uncaught runtime errors. -->
+ <verbose-stacktraces>false</verbose-stacktraces>
+
+ <!-- Defines the AS3 file encoding. -->
+ <!-- not set -->
+ <!--
+ <actionscript-file-encoding></actionscript-file-encoding>
+ -->
+
+ <fonts>
+
+ <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
+ <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
+ <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
+ <advanced-anti-aliasing>true</advanced-anti-aliasing>
+
+ <!-- The number of embedded font faces that are cached. -->
+ <max-cached-fonts>20</max-cached-fonts>
+
+ <!-- The number of character glyph outlines to cache for each font face. -->
+ <max-glyphs-per-face>1000</max-glyphs-per-face>
+
+ <!-- Defines ranges that can be used across multiple font-face declarations. -->
+ <!-- See flash-unicode-table.xml for more examples. -->
+ <!-- not set -->
+ <!--
+ <languages>
+ <language-range>
+ <lang>englishRange</lang>
+ <range>U+0020-U+007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order-->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.CFFFontManager</manager-class>
+ </managers>
+
+ <!-- File containing cached system font licensing information produced via
+ java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
+ Will default to winFonts.ser on Windows XP and
+ macFonts.ser on Mac OS X, so is commented out by default.
+
+ <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
+ -->
+
+ </fonts>
+
+ <!-- Array.toString() format has changed. -->
+ <warn-array-tostring-changes>false</warn-array-tostring-changes>
+
+ <!-- Assignment within conditional. -->
+ <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
+
+ <!-- Possibly invalid Array cast operation. -->
+ <warn-bad-array-cast>true</warn-bad-array-cast>
+
+ <!-- Non-Boolean value used where a Boolean value was expected. -->
+ <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
+
+ <!-- Invalid Date cast operation. -->
+ <warn-bad-date-cast>true</warn-bad-date-cast>
+
+ <!-- Unknown method. -->
+ <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
+
+ <!-- Unknown property. -->
+ <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
+
+ <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
+ <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
+
+ <!-- Impossible assignment to null. -->
+ <warn-bad-null-assignment>true</warn-bad-null-assignment>
+
+ <!-- Illogical comparison with null. -->
+ <warn-bad-null-comparison>true</warn-bad-null-comparison>
+
+ <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
+ <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
+
+ <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
+ <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
+
+ <!-- __resolve is no longer supported. -->
+ <warn-changes-in-resolve>false</warn-changes-in-resolve>
+
+ <!-- Class is sealed. It cannot have members added to it dynamically. -->
+ <warn-class-is-sealed>true</warn-class-is-sealed>
+
+ <!-- Constant not initialized. -->
+ <warn-const-not-initialized>true</warn-const-not-initialized>
+
+ <!-- Function used in new expression returns a value. Result will be what the -->
+ <!-- function returns, rather than a new instance of that function. -->
+ <warn-constructor-returns-value>false</warn-constructor-returns-value>
+
+ <!-- EventHandler was not added as a listener. -->
+ <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
+
+ <!-- Unsupported ActionScript 2.0 function. -->
+ <warn-deprecated-function-error>true</warn-deprecated-function-error>
+
+ <!-- Unsupported ActionScript 2.0 property. -->
+ <warn-deprecated-property-error>true</warn-deprecated-property-error>
+
+ <!-- More than one argument by the same name. -->
+ <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
+
+ <!-- Duplicate variable definition -->
+ <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
+
+ <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
+ <warn-for-var-in-changes>false</warn-for-var-in-changes>
+
+ <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
+ <warn-import-hides-class>true</warn-import-hides-class>
+
+ <!-- Use of the instanceof operator. -->
+ <warn-instance-of-changes>true</warn-instance-of-changes>
+
+ <!-- Internal error in compiler. -->
+ <warn-internal-error>true</warn-internal-error>
+
+ <!-- _level is no longer supported. For more information, see the flash.display package. -->
+ <warn-level-not-supported>true</warn-level-not-supported>
+
+ <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
+ <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
+
+ <!-- Negative value will become a large positive value when assigned to a uint data type. -->
+ <warn-negative-uint-literal>true</warn-negative-uint-literal>
+
+ <!-- Missing constructor. -->
+ <warn-no-constructor>false</warn-no-constructor>
+
+ <!-- The super() statement was not called within the constructor. -->
+ <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
+
+ <!-- Missing type declaration. -->
+ <warn-no-type-decl>true</warn-no-type-decl>
+
+ <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
+ <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
+ <warn-number-from-string-changes>false</warn-number-from-string-changes>
+
+ <!-- Change in scoping for the this keyword. Class methods extracted from an -->
+ <!-- instance of a class will always resolve this back to that instance. In -->
+ <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
+ <!-- is invoked from. -->
+ <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
+
+ <!-- Inefficient use of += on a TextField.-->
+ <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
+
+ <!-- Possible missing parentheses. -->
+ <warn-unlikely-function-value>true</warn-unlikely-function-value>
+
+ <!-- Possible usage of the ActionScript 2.0 XML class. -->
+ <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
+
+ </compiler>
+
+ <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
+ cross-domain rsl.-->
+ <!-- compute-digest usage:
+ <compute-digest>boolean</compute-digest>
+ -->
+
+ <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
+ <remove-unused-rsls>true</remove-unused-rsls>
+
+
+ <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
+ <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
+
+ <!-- target-player: specifies the version of the player the application is targeting.
+ Features requiring a later version will not be compiled into the application.
+ The minimum value supported is "9.0.0".-->
+ <!-- target-player usage:
+ <target-player>version</target-player>
+ -->
+
+ <!-- Enables SWFs to access the network. -->
+ <use-network>true</use-network>
+
+ <!-- Metadata added to SWFs via the SWF Metadata tag. -->
+ <metadata>
+ <title>Apache FlexJS Application</title>
+ <description>http://flex.apache.org/</description>
+ <publisher>Apache Software Foundation</publisher>
+ <creator>Apache Software Foundation</creator>
+ <language>en_US</language>
+ </metadata>
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/air-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/air-config-template.xml b/frameworks/as/air-config-template.xml
new file mode 100644
index 0000000..f7af70d
--- /dev/null
+++ b/frameworks/as/air-config-template.xml
@@ -0,0 +1,351 @@
+<?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.
+
+-->
+
+
+<flex-config>
+ <!-- Specifies the minimum player version that will run the compiled SWF. -->
+ <target-player>@playerversion@</target-player>
+
+ <!-- Specifies the version of the compiled SWF -->
+ <swf-version>@swfversion@</swf-version>
+
+ <compiler>
+
+ <!-- Turn on generation of accessible SWFs. -->
+ <accessible>true</accessible>
+
+ <!-- Specifies the locales for internationalization. -->
+ <locale>
+ <locale-element>@locale@</locale-element>
+ </locale>
+
+ <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
+ <!-- not set -->
+ <!--
+ <source-path>
+ <path-element>string</path-element>
+ </source-path>
+ -->
+
+ <!-- Allow the source-path to have path-elements which contain other path-elements -->
+ <allow-source-path-overlap>false</allow-source-path-overlap>
+
+ <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
+ <!-- code. -->
+ <show-actionscript-warnings>true</show-actionscript-warnings>
+
+ <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
+ <!-- but true by default for compc. -->
+ <!--
+ <debug>true</debug>
+ -->
+
+ <!-- List of SWC files or directories to compile against but to omit from -->
+ <!-- linking. -->
+ <external-library-path>
+ <path-element>{airHome}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
+ <!-- the compiler during mxml translation and are helpful with understanding and -->
+ <!-- debugging Flex applications. -->
+ <keep-generated-actionscript>false</keep-generated-actionscript>
+
+ <!-- not set -->
+ <!--
+ <include-libraries>
+ <library>string</library>
+ </include-libraries>
+ -->
+
+ <!-- List of SWC files or directories that contain SWC files. -->
+ <library-path>
+ <path-element>as/libs</path-element>
+ <path-element>{airHome}/frameworks/libs/air</path-element>
+ </library-path>
+
+ <namespaces>
+ <!-- Specify a URI to associate with a manifest of components for use as MXML -->
+ <!-- elements. -->
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+
+ <manifest>as/projects/FlexJSUI/basic-manifest.xml</manifest>
+
+ </namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/html5</uri>
+
+ <manifest>as/projects/FlexJSUI/html5-manifest.xml</manifest>
+
+ </namespace>
+ </namespaces>
+
+ <!-- Enable post-link SWF optimization. -->
+ <optimize>true</optimize>
+
+ <!-- Keep the following AS3 metadata in the bytecodes. -->
+ <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
+ <!-- the following metadata must be kept: -->
+ <!-- 1. Bindable -->
+ <!-- 2. Managed -->
+ <!-- 3. ChangeEvent -->
+ <!-- 4. NonCommittingChangeEvent -->
+ <!-- 5. Transient -->
+ <!--
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+ -->
+
+ <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
+ <!-- will not be able to detect assignments to "foo". -->
+ <show-binding-warnings>true</show-binding-warnings>
+
+ <!-- toggle whether warnings generated from unused type selectors are displayed -->
+ <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
+
+ <!-- Run the AS3 compiler in strict error checking mode. -->
+ <strict>true</strict>
+
+ <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
+ <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
+ <!-- (-strict is recommended, but not required, for earlier errors) -->
+ <as3>true</as3>
+
+ <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
+ <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
+ <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
+ <!-- references to dynamic properties) -->
+ <es>false</es>
+
+ <!-- List of CSS or SWC files to apply as a theme. -->
+ <!-- not set -->
+ <!--
+ <theme>
+ <filename>string</filename>
+ <filename>string</filename>
+ </theme>
+ -->
+
+ <!-- Turns on the display of stack traces for uncaught runtime errors. -->
+ <verbose-stacktraces>false</verbose-stacktraces>
+
+ <!-- Defines the AS3 file encoding. -->
+ <!-- not set -->
+ <!--
+ <actionscript-file-encoding></actionscript-file-encoding>
+ -->
+
+ <fonts>
+
+ <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
+ <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
+ <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
+ <advanced-anti-aliasing>true</advanced-anti-aliasing>
+
+ <!-- The number of embedded font faces that are cached. -->
+ <max-cached-fonts>20</max-cached-fonts>
+
+ <!-- The number of character glyph outlines to cache for each font face. -->
+ <max-glyphs-per-face>1000</max-glyphs-per-face>
+
+ <!-- Defines ranges that can be used across multiple font-face declarations. -->
+ <!-- See flash-unicode-table.xml for more examples. -->
+ <!-- not set -->
+ <!--
+ <languages>
+ <language-range>
+ <lang>englishRange</lang>
+ <range>U+0020-U+007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order-->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.CFFFontManager</manager-class>
+ </managers>
+
+ <!-- File containing cached system font licensing information produced via
+ java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
+ Will default to winFonts.ser on Windows XP and
+ macFonts.ser on Mac OS X, so is commented out by default.
+
+ <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
+ -->
+
+ </fonts>
+
+ <!-- Array.toString() format has changed. -->
+ <warn-array-tostring-changes>false</warn-array-tostring-changes>
+
+ <!-- Assignment within conditional. -->
+ <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
+
+ <!-- Possibly invalid Array cast operation. -->
+ <warn-bad-array-cast>true</warn-bad-array-cast>
+
+ <!-- Non-Boolean value used where a Boolean value was expected. -->
+ <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
+
+ <!-- Invalid Date cast operation. -->
+ <warn-bad-date-cast>true</warn-bad-date-cast>
+
+ <!-- Unknown method. -->
+ <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
+
+ <!-- Unknown property. -->
+ <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
+
+ <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
+ <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
+
+ <!-- Impossible assignment to null. -->
+ <warn-bad-null-assignment>true</warn-bad-null-assignment>
+
+ <!-- Illogical comparison with null. -->
+ <warn-bad-null-comparison>true</warn-bad-null-comparison>
+
+ <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
+ <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
+
+ <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
+ <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
+
+ <!-- __resolve is no longer supported. -->
+ <warn-changes-in-resolve>false</warn-changes-in-resolve>
+
+ <!-- Class is sealed. It cannot have members added to it dynamically. -->
+ <warn-class-is-sealed>true</warn-class-is-sealed>
+
+ <!-- Constant not initialized. -->
+ <warn-const-not-initialized>true</warn-const-not-initialized>
+
+ <!-- Function used in new expression returns a value. Result will be what the -->
+ <!-- function returns, rather than a new instance of that function. -->
+ <warn-constructor-returns-value>false</warn-constructor-returns-value>
+
+ <!-- EventHandler was not added as a listener. -->
+ <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
+
+ <!-- Unsupported ActionScript 2.0 function. -->
+ <warn-deprecated-function-error>true</warn-deprecated-function-error>
+
+ <!-- Unsupported ActionScript 2.0 property. -->
+ <warn-deprecated-property-error>true</warn-deprecated-property-error>
+
+ <!-- More than one argument by the same name. -->
+ <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
+
+ <!-- Duplicate variable definition -->
+ <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
+
+ <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
+ <warn-for-var-in-changes>false</warn-for-var-in-changes>
+
+ <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
+ <warn-import-hides-class>true</warn-import-hides-class>
+
+ <!-- Use of the instanceof operator. -->
+ <warn-instance-of-changes>true</warn-instance-of-changes>
+
+ <!-- Internal error in compiler. -->
+ <warn-internal-error>true</warn-internal-error>
+
+ <!-- _level is no longer supported. For more information, see the flash.display package. -->
+ <warn-level-not-supported>true</warn-level-not-supported>
+
+ <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
+ <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
+
+ <!-- Negative value will become a large positive value when assigned to a uint data type. -->
+ <warn-negative-uint-literal>true</warn-negative-uint-literal>
+
+ <!-- Missing constructor. -->
+ <warn-no-constructor>false</warn-no-constructor>
+
+ <!-- The super() statement was not called within the constructor. -->
+ <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
+
+ <!-- Missing type declaration. -->
+ <warn-no-type-decl>true</warn-no-type-decl>
+
+ <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
+ <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
+ <warn-number-from-string-changes>false</warn-number-from-string-changes>
+
+ <!-- Change in scoping for the this keyword. Class methods extracted from an -->
+ <!-- instance of a class will always resolve this back to that instance. In -->
+ <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
+ <!-- is invoked from. -->
+ <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
+
+ <!-- Inefficient use of += on a TextField.-->
+ <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
+
+ <!-- Possible missing parentheses. -->
+ <warn-unlikely-function-value>true</warn-unlikely-function-value>
+
+ <!-- Possible usage of the ActionScript 2.0 XML class. -->
+ <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
+
+ </compiler>
+
+ <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
+ cross-domain rsl.-->
+ <!-- compute-digest usage:
+ <compute-digest>boolean</compute-digest>
+ -->
+
+ <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
+ <remove-unused-rsls>true</remove-unused-rsls>
+
+
+ <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
+ <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
+
+ <!-- target-player: specifies the version of the player the application is targeting.
+ Features requiring a later version will not be compiled into the application.
+ The minimum value supported is "9.0.0".-->
+ <!-- target-player usage:
+ <target-player>version</target-player>
+ -->
+
+ <!-- Enables SWFs to access the network. -->
+ <use-network>true</use-network>
+
+ <!-- Metadata added to SWFs via the SWF Metadata tag. -->
+ <metadata>
+ <title>Apache FlexJS Application</title>
+ <description>http://flex.apache.org/</description>
+ <publisher>Apache Software Foundation</publisher>
+ <creator>Apache Software Foundation</creator>
+ <language>en_US</language>
+ </metadata>
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/air-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/air-config.xml b/frameworks/as/air-config.xml
deleted file mode 100644
index 417fe16..0000000
--- a/frameworks/as/air-config.xml
+++ /dev/null
@@ -1,354 +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.
-
--->
-
-
-<flex-config>
- <!-- Specifies the minimum player version that will run the compiled SWF. -->
- <target-player>@playerversion@</target-player>
-
- <!-- Specifies the version of the compiled SWF -->
- <swf-version>@swfversion@</swf-version>
-
- <compiler>
-
- <!-- Turn on generation of accessible SWFs. -->
- <accessible>true</accessible>
-
- <!-- Specifies the locales for internationalization. -->
- <locale>
- <locale-element>@locale@</locale-element>
- </locale>
-
- <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
- <!-- not set -->
- <!--
- <source-path>
- <path-element>string</path-element>
- </source-path>
- -->
-
- <!-- Allow the source-path to have path-elements which contain other path-elements -->
- <allow-source-path-overlap>false</allow-source-path-overlap>
-
- <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
- <!-- code. -->
- <show-actionscript-warnings>true</show-actionscript-warnings>
-
- <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
- <!-- but true by default for compc. -->
- <!--
- <debug>true</debug>
- -->
-
- <!-- List of SWC files or directories to compile against but to omit from -->
- <!-- linking. -->
- <external-library-path>
- <path-element>{airHome}/frameworks/libs/air/airglobal.swc</path-element>
- </external-library-path>
-
- <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
- <!-- the compiler during mxml translation and are helpful with understanding and -->
- <!-- debugging Flex applications. -->
- <keep-generated-actionscript>false</keep-generated-actionscript>
-
- <!-- not set -->
- <!--
- <include-libraries>
- <library>string</library>
- </include-libraries>
- -->
-
- <!-- List of SWC files or directories that contain SWC files. -->
- <library-path>
- <path-element>libs</path-element>
- <path-element>libs/as</path-element>
- <path-element>libs/air</path-element>
- <path-element>{airHome}/frameworks/libs/air</path-element>
- <path-element>locale/{locale}</path-element>
- </library-path>
-
- <namespaces>
- <!-- Specify a URI to associate with a manifest of components for use as MXML -->
- <!-- elements. -->
- <namespace>
- <uri>library://ns.apache.org/flexjs/basic</uri>
-
- <manifest>basic-manifest.xml</manifest>
-
- </namespace>
- <namespace>
- <uri>library://ns.apache.org/flexjs/html5</uri>
-
- <manifest>html5-manifest.xml</manifest>
-
- </namespace>
- </namespaces>
-
- <!-- Enable post-link SWF optimization. -->
- <optimize>true</optimize>
-
- <!-- Keep the following AS3 metadata in the bytecodes. -->
- <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
- <!-- the following metadata must be kept: -->
- <!-- 1. Bindable -->
- <!-- 2. Managed -->
- <!-- 3. ChangeEvent -->
- <!-- 4. NonCommittingChangeEvent -->
- <!-- 5. Transient -->
- <!--
- <keep-as3-metadata>
- <name>Bindable</name>
- <name>Managed</name>
- <name>ChangeEvent</name>
- <name>NonCommittingChangeEvent</name>
- <name>Transient</name>
- </keep-as3-metadata>
- -->
-
- <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
- <!-- will not be able to detect assignments to "foo". -->
- <show-binding-warnings>true</show-binding-warnings>
-
- <!-- toggle whether warnings generated from unused type selectors are displayed -->
- <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
-
- <!-- Run the AS3 compiler in strict error checking mode. -->
- <strict>true</strict>
-
- <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
- <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
- <!-- (-strict is recommended, but not required, for earlier errors) -->
- <as3>true</as3>
-
- <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
- <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
- <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
- <!-- references to dynamic properties) -->
- <es>false</es>
-
- <!-- List of CSS or SWC files to apply as a theme. -->
- <!-- not set -->
- <!--
- <theme>
- <filename>string</filename>
- <filename>string</filename>
- </theme>
- -->
-
- <!-- Turns on the display of stack traces for uncaught runtime errors. -->
- <verbose-stacktraces>false</verbose-stacktraces>
-
- <!-- Defines the AS3 file encoding. -->
- <!-- not set -->
- <!--
- <actionscript-file-encoding></actionscript-file-encoding>
- -->
-
- <fonts>
-
- <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
- <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
- <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
- <advanced-anti-aliasing>true</advanced-anti-aliasing>
-
- <!-- The number of embedded font faces that are cached. -->
- <max-cached-fonts>20</max-cached-fonts>
-
- <!-- The number of character glyph outlines to cache for each font face. -->
- <max-glyphs-per-face>1000</max-glyphs-per-face>
-
- <!-- Defines ranges that can be used across multiple font-face declarations. -->
- <!-- See flash-unicode-table.xml for more examples. -->
- <!-- not set -->
- <!--
- <languages>
- <language-range>
- <lang>englishRange</lang>
- <range>U+0020-U+007E</range>
- </language-range>
- </languages>
- -->
-
- <!-- Compiler font manager classes, in policy resolution order-->
- <managers>
- <manager-class>flash.fonts.JREFontManager</manager-class>
- <manager-class>flash.fonts.AFEFontManager</manager-class>
- <manager-class>flash.fonts.BatikFontManager</manager-class>
- <manager-class>flash.fonts.CFFFontManager</manager-class>
- </managers>
-
- <!-- File containing cached system font licensing information produced via
- java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
- Will default to winFonts.ser on Windows XP and
- macFonts.ser on Mac OS X, so is commented out by default.
-
- <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
- -->
-
- </fonts>
-
- <!-- Array.toString() format has changed. -->
- <warn-array-tostring-changes>false</warn-array-tostring-changes>
-
- <!-- Assignment within conditional. -->
- <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
-
- <!-- Possibly invalid Array cast operation. -->
- <warn-bad-array-cast>true</warn-bad-array-cast>
-
- <!-- Non-Boolean value used where a Boolean value was expected. -->
- <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
-
- <!-- Invalid Date cast operation. -->
- <warn-bad-date-cast>true</warn-bad-date-cast>
-
- <!-- Unknown method. -->
- <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
-
- <!-- Unknown property. -->
- <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
-
- <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
- <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
-
- <!-- Impossible assignment to null. -->
- <warn-bad-null-assignment>true</warn-bad-null-assignment>
-
- <!-- Illogical comparison with null. -->
- <warn-bad-null-comparison>true</warn-bad-null-comparison>
-
- <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
- <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
-
- <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
- <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
-
- <!-- __resolve is no longer supported. -->
- <warn-changes-in-resolve>false</warn-changes-in-resolve>
-
- <!-- Class is sealed. It cannot have members added to it dynamically. -->
- <warn-class-is-sealed>true</warn-class-is-sealed>
-
- <!-- Constant not initialized. -->
- <warn-const-not-initialized>true</warn-const-not-initialized>
-
- <!-- Function used in new expression returns a value. Result will be what the -->
- <!-- function returns, rather than a new instance of that function. -->
- <warn-constructor-returns-value>false</warn-constructor-returns-value>
-
- <!-- EventHandler was not added as a listener. -->
- <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
-
- <!-- Unsupported ActionScript 2.0 function. -->
- <warn-deprecated-function-error>true</warn-deprecated-function-error>
-
- <!-- Unsupported ActionScript 2.0 property. -->
- <warn-deprecated-property-error>true</warn-deprecated-property-error>
-
- <!-- More than one argument by the same name. -->
- <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
-
- <!-- Duplicate variable definition -->
- <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
-
- <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
- <warn-for-var-in-changes>false</warn-for-var-in-changes>
-
- <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
- <warn-import-hides-class>true</warn-import-hides-class>
-
- <!-- Use of the instanceof operator. -->
- <warn-instance-of-changes>true</warn-instance-of-changes>
-
- <!-- Internal error in compiler. -->
- <warn-internal-error>true</warn-internal-error>
-
- <!-- _level is no longer supported. For more information, see the flash.display package. -->
- <warn-level-not-supported>true</warn-level-not-supported>
-
- <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
- <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
-
- <!-- Negative value will become a large positive value when assigned to a uint data type. -->
- <warn-negative-uint-literal>true</warn-negative-uint-literal>
-
- <!-- Missing constructor. -->
- <warn-no-constructor>false</warn-no-constructor>
-
- <!-- The super() statement was not called within the constructor. -->
- <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
-
- <!-- Missing type declaration. -->
- <warn-no-type-decl>true</warn-no-type-decl>
-
- <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
- <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
- <warn-number-from-string-changes>false</warn-number-from-string-changes>
-
- <!-- Change in scoping for the this keyword. Class methods extracted from an -->
- <!-- instance of a class will always resolve this back to that instance. In -->
- <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
- <!-- is invoked from. -->
- <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
-
- <!-- Inefficient use of += on a TextField.-->
- <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
-
- <!-- Possible missing parentheses. -->
- <warn-unlikely-function-value>true</warn-unlikely-function-value>
-
- <!-- Possible usage of the ActionScript 2.0 XML class. -->
- <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
-
- </compiler>
-
- <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
- cross-domain rsl.-->
- <!-- compute-digest usage:
- <compute-digest>boolean</compute-digest>
- -->
-
- <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
- <remove-unused-rsls>true</remove-unused-rsls>
-
-
- <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
- <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
-
- <!-- target-player: specifies the version of the player the application is targeting.
- Features requiring a later version will not be compiled into the application.
- The minimum value supported is "9.0.0".-->
- <!-- target-player usage:
- <target-player>version</target-player>
- -->
-
- <!-- Enables SWFs to access the network. -->
- <use-network>true</use-network>
-
- <!-- Metadata added to SWFs via the SWF Metadata tag. -->
- <metadata>
- <title>Apache FlexJS Application</title>
- <description>http://flex.apache.org/</description>
- <publisher>Apache Software Foundation</publisher>
- <creator>Apache Software Foundation</creator>
- <language>en_US</language>
- </metadata>
-
-</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/build.xml b/frameworks/as/build.xml
index cfdc8b5..598bb68 100644
--- a/frameworks/as/build.xml
+++ b/frameworks/as/build.xml
@@ -71,7 +71,7 @@
<target name="prepare" depends="thirdparty-downloads"/>
<target name="thirdparty-downloads" unless="no.thirdparty-downloads" description="Downloads all the required thirdparty code.">
- <!--<ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>-->
+ <ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>
</target>
<target name="compile" description="Builds all SWCs but not their resource bundles">
@@ -129,7 +129,7 @@
</target>
<target name="flex-config" depends="playerglobal-setswfversion" description="Copy the flex config template to flex-config.xml and inject version numbers">
- <copy file="${basedir}/flex-config-template.xml" tofile="${basedir}/flex-config.xml" overwrite="true">
+ <copy file="${basedir}/flex-config-template.xml" tofile="${basedir}/../flex-config.xml" overwrite="true">
<filterset>
<filter token="playerversion" value="${playerglobal.version}"/>
<filter token="swfversion" value="${playerglobal.swfversion}"/>
@@ -138,6 +138,16 @@
</copy>
</target>
+ <target name="air-config" depends="playerglobal-setswfversion" description="Copy the air config template to air-config.xml and inject version numbers">
+ <copy file="${basedir}/air-config-template.xml" tofile="${basedir}/../air-config.xml" overwrite="true">
+ <filterset>
+ <filter token="playerversion" value="${playerglobal.version}"/>
+ <filter token="swfversion" value="${playerglobal.swfversion}"/>
+ <filter token="locale" value="${locale}"/>
+ </filterset>
+ </copy>
+ </target>
+
<target name="playerglobal-setswfversion" description="Set the swfversion to insert into the flex config file">
<condition property="playerglobal.swfversion" value="11">
<equals arg1="${playerglobal.version}" arg2="10.2" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/downloads.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/downloads.xml b/frameworks/as/downloads.xml
new file mode 100644
index 0000000..c1c985d
--- /dev/null
+++ b/frameworks/as/downloads.xml
@@ -0,0 +1,84 @@
+<?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="downloads" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+
+ <!-- properties -->
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
+
+ <property name="download.dir" value="${FLEXJS_HOME}/in"/>
+
+ <!--
+ To clean these you must call thirdparty-clean or super-clean to clean everything.
+ clean does not remove these since they don't change often and the downloads take time.
+ -->
+ <target name="main"
+ depends="swfobject-download"
+ description="Copies third-party software into place for build">
+ <echo message="Use thirdparty-clean or super-clean to remove these."/>
+ </target>
+
+ <target name="clean" depends="swfobject-clean"
+ description="Cleans thirdparty downloaded files.">
+ </target>
+
+ <!-- swfobject.js (Version 2.2) -->
+ <!-- Because this requires a network connection it downloads SWFObject only if it doesn't already exist. -->
+ <target name="swfobject-check" description="Checks if SWFObject has been downloaded.">
+ <available file="${basedir}/../templates/swfobject/swfobject.js" property="swfobject.js.present"/>
+ </target>
+
+ <target name="swfobject-download" depends="swfobject-check" unless="swfobject.js.present"
+ description="Copies SWFObject from code.google.com">
+
+ <mkdir dir="${download.dir}"/>
+ <get src="http://swfobject.googlecode.com/files/swfobject_2_2.zip"
+ dest="${download.dir}/swfobject_2_2.zip"
+ verbose="false"/>
+
+ <unzip src="${download.dir}/swfobject_2_2.zip" dest="${FLEXJS_HOME}/templates">
+ <patternset>
+ <include name="swfobject/expressInstall.swf"/>
+ <include name="swfobject/swfobject.js"/>
+ </patternset>
+ </unzip>
+ <copy toDir="${FLEXJS_HOME}/templates/swfobject" >
+ <fileset dir="${FLEX_HOME}/templates/swfobject">
+ <include name="index.template.html"/>
+ </fileset>
+ </copy>
+ <copy toDir="${FLEXJS_HOME}/templates/swfobject/history" >
+ <fileset dir="${FLEX_HOME}/templates/swfobject/history">
+ <include name="**"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="swfobject-clean" description="Deletes templates swfobject code.">
+ <delete failonerror="false">
+ <fileset dir="${FLEXJS_HOME}/templates/swfobject">
+ <include name="**/**"/>
+ </fileset>
+ </delete>
+ </target>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/flex-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/flex-config-template.xml b/frameworks/as/flex-config-template.xml
index 2d37ae1..53c15f7 100644
--- a/frameworks/as/flex-config-template.xml
+++ b/frameworks/as/flex-config-template.xml
@@ -61,7 +61,7 @@
<!-- List of SWC files or directories to compile against but to omit from -->
<!-- linking. -->
<external-library-path>
- <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
+ <path-element>{playerglobalHome}/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
</external-library-path>
<!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
@@ -78,9 +78,8 @@
<!-- List of SWC files or directories that contain SWC files. -->
<library-path>
- <path-element>libs</path-element>
- <path-element>locale/en_US</path-element>
- <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
+ <path-element>as/libs</path-element>
+ <path-element>{playerglobalHome}/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
</library-path>
<namespaces>
@@ -89,13 +88,13 @@
<namespace>
<uri>library://ns.apache.org/flexjs/basic</uri>
- <manifest>basic-manifest.xml</manifest>
+ <manifest>as/projects/FlexJSUI/basic-manifest.xml</manifest>
</namespace>
<namespace>
<uri>library://ns.apache.org/flexjs/html5</uri>
- <manifest>html5-manifest.xml</manifest>
+ <manifest>as/projects/FlexJSUI/html5-manifest.xml</manifest>
</namespace>
</namespaces>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/projects/FlexJSUI/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/build.xml b/frameworks/as/projects/FlexJSUI/build.xml
index f7d9f75..78ed4c8 100644
--- a/frameworks/as/projects/FlexJSUI/build.xml
+++ b/frameworks/as/projects/FlexJSUI/build.xml
@@ -38,13 +38,18 @@
</delete>
</target>
+ <path id="lib.path">
+ <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+ </path>
+
<target name="compile" description="Compiles FlexJSUI.swc">
<echo message="Compiling libs/FlexJSUI.swc"/>
<echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCON_HOME: ${FALCON_HOME}"/>
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
- <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
<!--
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.
@@ -65,5 +70,5 @@
<arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
</compc>
</target>
-
+
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/as/projects/MXMLCClasses/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/build.xml b/frameworks/as/projects/MXMLCClasses/build.xml
index 8c2e3b4..3564226 100644
--- a/frameworks/as/projects/MXMLCClasses/build.xml
+++ b/frameworks/as/projects/MXMLCClasses/build.xml
@@ -38,13 +38,18 @@
</delete>
</target>
+ <path id="lib.path">
+ <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+ </path>
+
+
<target name="compile" description="Compiles MXMLCClasses.swc">
<echo message="Compiling libs/MXMLCClasses.swc"/>
<echo message="FLEX_HOME: ${FLEX_HOME}"/>
<!-- Load the <compc> task. We can't do this at the <project> level -->
<!-- because targets that run before flexTasks.jar gets built would fail. -->
- <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar"/>
+ <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
<!--
Link in the classes (and their dependencies) for the MXML tags
listed in this project's manifest.xml.