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:11 UTC
[01/18] mucking with FlexJS build to make it more Apache-like
Updated Branches:
refs/heads/develop 6849d4cef -> 52d350441
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/102b167f/frameworks/flex-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/flex-config.xml b/frameworks/flex-config.xml
new file mode 100644
index 0000000..40e92a4
--- /dev/null
+++ b/frameworks/flex-config.xml
@@ -0,0 +1,353 @@
+<?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>{playerglobalHome}/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.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>{playerglobalHome}/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</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>
+
+ <!-- Enable trace statement omission. -->
+ <omit-trace-statements>true</omit-trace-statements>
+
+ <!-- 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. -->
+ <theme>
+ </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-007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order -->
+ <!-- NOTE: For Apache Flex -->
+ <!-- AFEFontManager and CFFFontManager both use proprietary technology. -->
+ <!-- You must install the optional font jars if you wish to use embedded fonts -->
+ <!-- directly or you can use fontswf to precompile the font as a swf. -->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</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>unknown</creator>
+ <language>EN</language>
+ </metadata>
+
+</flex-config>
[09/18] git commit: [flex-asjs] [refs/heads/develop] - add externals
to example builds
Posted by ah...@apache.org.
add externals to example builds
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6f00f489
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6f00f489
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6f00f489
Branch: refs/heads/develop
Commit: 6f00f4892f3bddb61ef793d95d3f1babb1ebe7f4
Parents: 030dca9
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:36:06 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:36:06 2013 -0800
----------------------------------------------------------------------
examples/build_example.xml | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6f00f489/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index e69c8c6..6bc3db1 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -135,6 +135,8 @@
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src" />
+ <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/jquery_externals.js" />
+ <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/createjs_externals.js" />
<arg value="${basedir}/src/${example}.mxml" />
</java>
@@ -161,6 +163,8 @@
<arg value="-js-output-type=FLEXJS" />
<arg value="-closure-lib=${GOOG_HOME}" />
<arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src" />
+ <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/jquery_externals.js" />
+ <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/createjs_externals.js" />
<arg value="${basedir}/src/${example}.as" />
</java>
[17/18] git commit: [flex-asjs] [refs/heads/develop] - deployment now
works on mac
Posted by ah...@apache.org.
deployment now works on mac
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3688bc70
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3688bc70
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3688bc70
Branch: refs/heads/develop
Commit: 3688bc70915898028bd35f4f70f68a4af0cc620e
Parents: fc9e6f9
Author: Alex Harui <ah...@apache.org>
Authored: Sat Nov 23 23:01:31 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sat Nov 23 23:01:31 2013 -0800
----------------------------------------------------------------------
build.xml | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 110 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3688bc70/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index f3c3d27..97c52e6 100644
--- a/build.xml
+++ b/build.xml
@@ -439,9 +439,13 @@
<tar-gzip name="${source.kit}" />
</target>
- <target name="stage-source"
- description="Package source files required to build in zip file">
-
+ <target name="stage-source" depends="stage-source-no-scripts"
+ description="Package source files required to build in zip file" >
+ <!-- scripts -->
+ <antcall target="stage-scripts"/>
+ </target>
+
+ <target name="stage-source-no-scripts" >
<antcall target="clean-temp"/>
<copy todir="${basedir}/temp" includeEmptyDirs="false">
@@ -493,9 +497,6 @@
</fileset>
</copy>
- <!-- scripts -->
- <antcall target="stage-scripts"/>
-
<!-- templates
<copy todir="${basedir}/temp/templates">
<fileset dir="${basedir}/templates" >
@@ -744,6 +745,8 @@
<!-- examples -->
<copy todir="${basedir}/temp/examples">
<fileset dir="${basedir}/examples" >
+ <exclude name="**/FlexJSTest_again/**" />
+ <exclude name="**/VanillaSDK_POC/**" />
<include name="**/build.xml"/>
<include name="**/*.swc"/>
<include name="**/*.swf"/>
@@ -762,6 +765,107 @@
<antcall target="binary-package-zip"/>
<antcall target="binary-package-tgz"/>
</target>
+
+ <target name="package-sdk" depends="check-compile-env,check-runtime-env,check-falcon-home,check-falconjx-home"
+ description="Package falcon and templates into binary package">
+
+ <antcall target="clean-temp"/>
+
+ <antcall target="stage-source-no-scripts"/>
+
+ <!-- delete any left-over empty directories -->
+ <delete includeemptydirs="true">
+ <fileset dir="${basedir}/temp/frameworks">
+ <and>
+ <size value="0"/>
+ <type type="dir"/>
+ </and>
+ </fileset>
+ </delete>
+
+ <!-- these files are in addition to the remaining source files -->
+
+ <!-- concat the license file with the binary license file for the 3rd party deps -->
+ <!--concat destfile="${basedir}/temp/LICENSE">
+ <filelist dir="${FLEX_SDK_HOME}" files="LICENSE,LICENSE.bin"/>
+ </concat-->
+
+ <!-- frameworks/libs -->
+ <copy todir="${basedir}/temp/frameworks/as/libs">
+ <fileset dir="${basedir}/frameworks/as/libs">
+ <include name="FlexJSUI.swc"/>
+ <include name="MXMLCClasses.swc"/>
+ </fileset>
+ </copy>
+
+ <!-- frameworks config files -->
+ <copy todir="${basedir}/temp/frameworks">
+ <fileset dir="${basedir}/frameworks">
+ <include name="air-config.xml"/>
+ <include name="flex-config.xml"/>
+ </fileset>
+ </copy>
+ <replace file="${basedir}/temp/frameworks/air-config.xml">
+ <replacefilter
+ token="{playerglobalHome}"
+ value="libs/player"/>
+ </replace>
+ <replace file="${basedir}/temp/frameworks/flex-config.xml">
+ <replacefilter
+ token="{playerglobalHome}"
+ value="libs/player"/>
+ </replace>
+
+ <!-- now that config xml files are in temp, fix them up for release. -->
+ <echo message="Updating config file air-config.xml with version ${build.version}"/>
+ <fix-config-file file="${basedir}/temp/frameworks/air-config.xml" version="${build.version}" />
+ <echo message="Updating config file flex-config.xml with version ${build.version}"/>
+ <fix-config-file file="${basedir}/temp/frameworks/flex-config.xml" version="${build.version}" />
+
+ <!-- falcon -->
+ <antcall target="stage-falcon"/>
+
+ <!-- falconjx -->
+ <antcall target="stage-falconjx"/>
+
+ <!-- ide
+ <copy todir="${basedir}/temp/ide">
+ <fileset dir="${basedir}/ide" >
+ <include name="flashbuilder/config"/>
+ </fileset>
+ </copy>
+ -->
+
+ <!-- examples -->
+ <copy todir="${basedir}/temp/examples">
+ <fileset dir="${basedir}/examples" >
+ <exclude name="**/FlexJSTest_again/**" />
+ <exclude name="**/VanillaSDK_POC/**" />
+ <include name="**/build.xml"/>
+ <include name="**/*.swc"/>
+ <include name="**/*.swf"/>
+ </fileset>
+ </copy>
+
+ <!-- swfobject templates except for downloaded files -->
+ <copy todir="${basedir}/temp/templates/swfobject">
+ <fileset dir="${basedir}/templates/swfobject">
+ </fileset>
+ </copy>
+
+ <!-- deploy scripts -->
+ <copy todir="${basedir}/temp">
+ <fileset dir="${basedir}/scripts" >
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+
+ <chmod dir="${basedir}/temp" includes="**/*.sh" perm="+x" />
+
+ <mkdir dir="${basedir}/out"/>
+ <zip destfile="${basedir}/out/ApacheFlexJS.zip" basedir="${basedir}/temp"/>
+ <tar-gzip name="ApacheFlexJS" />
+ </target>
<!--
Packages the binary distribution with ZIP.
[16/18] git commit: [flex-asjs] [refs/heads/develop] - also need
mx_internal to satisfy FB assumptions
Posted by ah...@apache.org.
also need mx_internal to satisfy FB assumptions
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fc9e6f96
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fc9e6f96
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fc9e6f96
Branch: refs/heads/develop
Commit: fc9e6f9614735f51f5633b07cc691a681f577a0f
Parents: f2c456c
Author: Alex Harui <ah...@apache.org>
Authored: Sat Nov 23 23:00:41 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sat Nov 23 23:00:41 2013 -0800
----------------------------------------------------------------------
.../projects/MXMLCClasses/src/MXMLCClasses.as | 1 +
.../MXMLCClasses/src/mx/core/mx_internal.as | 37 ++++++++++++++++++++
2 files changed, 38 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fc9e6f96/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as b/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
index bbbb6fb..7ac2c71 100644
--- a/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
+++ b/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
@@ -48,6 +48,7 @@ internal class MXMLCClasses
import mx.core.IFlexModuleFactory; IFlexModuleFactory;
import mx.core.IPropertyChangeNotifier; IPropertyChangeNotifier;
import mx.core.IStateClient2; IStateClient2;
+ import mx.core.mx_internal; use namespace mx_internal;
import mx.events.PropertyChangeEvent; PropertyChangeEvent;
import mx.filters.IBitmapFilter; IBitmapFilter;
import mx.styles.CSSCondition; CSSCondition;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fc9e6f96/frameworks/as/projects/MXMLCClasses/src/mx/core/mx_internal.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/mx_internal.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/mx_internal.as
new file mode 100644
index 0000000..e70b0a5
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/mx_internal.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 mx.core
+{
+
+/**
+ * This namespace is used for undocumented APIs -- usually implementation
+ * details -- which can't be private because they need to visible
+ * to other classes.
+ * APIs in this namespace are completely unsupported and are likely to
+ * change in future versions of Flex.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+public namespace mx_internal =
+ "http://www.adobe.com/2006/flex/mx/internal";
+}
[08/18] git commit: [flex-asjs] [refs/heads/develop] - fix location
for templates
Posted by ah...@apache.org.
fix location for templates
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/030dca92
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/030dca92
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/030dca92
Branch: refs/heads/develop
Commit: 030dca924ac72d9c743be1fc207d1e62bda28418
Parents: 47e7d75
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:35:27 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:35:27 2013 -0800
----------------------------------------------------------------------
frameworks/as/downloads.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/030dca92/frameworks/as/downloads.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/downloads.xml b/frameworks/as/downloads.xml
index c1c985d..d58b693 100644
--- a/frameworks/as/downloads.xml
+++ b/frameworks/as/downloads.xml
@@ -44,7 +44,7 @@
<!-- 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"/>
+ <available file="${FLEXJS_HOME}/templates/swfobject/swfobject.js" property="swfobject.js.present"/>
</target>
<target name="swfobject-download" depends="swfobject-check" unless="swfobject.js.present"
[10/18] git commit: [flex-asjs] [refs/heads/develop] - add limited
media query check for -flex-flash. More MQ processing needed eventually
Posted by ah...@apache.org.
add limited media query check for -flex-flash. More MQ processing needed eventually
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d63b447b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d63b447b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d63b447b
Branch: refs/heads/develop
Commit: d63b447b614c8ac83aebccf34150e1fafb7c2d07
Parents: 6f00f48
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:37:39 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:37:39 2013 -0800
----------------------------------------------------------------------
.../org/apache/flex/core/SimpleCSSValuesImpl.as | 44 ++++++++++++++++----
1 file changed, 37 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d63b447b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
index 6f9ad06..ce14fb3 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -19,12 +19,12 @@
package org.apache.flex.core
{
import flash.system.ApplicationDomain;
+ import flash.utils.getDefinitionByName;
import flash.utils.getQualifiedClassName;
import flash.utils.getQualifiedSuperclassName;
- import flash.utils.getDefinitionByName;
- import org.apache.flex.events.ValueChangeEvent;
import org.apache.flex.events.EventDispatcher;
+ import org.apache.flex.events.ValueChangeEvent;
public class SimpleCSSValuesImpl extends EventDispatcher implements IValuesImpl
{
@@ -113,6 +113,18 @@ package org.apache.flex.core
}
}
*/
+ var mq:String = null;
+ var o:Object;
+ if (i < n - 2)
+ {
+ // peek ahead to see if there is a media query
+ if (arr[i + 1] == CSSClass.CSSMediaQuery)
+ {
+ mq = arr[i + 2];
+ i += 2;
+ declarationName = mq + "_" + declarationName;
+ }
+ }
var finalName:String;
var valuesFunction:Function;
var valuesObject:Object;
@@ -120,15 +132,16 @@ package org.apache.flex.core
{
valuesFunction = factoryFunctions[declarationName];
valuesObject = new valuesFunction();
- finalName = fixNames(declarationName);
- values[finalName] = valuesObject;
}
else
{
valuesFunction = factoryFunctions[declarationName];
valuesObject = new valuesFunction();
- var o:Object = values[declarationName];
- finalName = fixNames(declarationName);
+ }
+ if (isValidStaticMediaQuery(mq))
+ {
+ finalName = fixNames(declarationName, mq);
+ o = values[finalName];
if (o == null)
values[finalName] = valuesObject;
else
@@ -143,8 +156,24 @@ package org.apache.flex.core
}
- private function fixNames(s:String):String
+ private function isValidStaticMediaQuery(mq:String):Boolean
+ {
+ if (mq == null)
+ return true;
+
+ if (mq == "-flex-flash")
+ return true;
+
+ // TODO: (aharui) other media query
+
+ return false;
+ }
+
+ private function fixNames(s:String, mq:String):String
{
+ if (mq != null)
+ s = s.substr(mq.length + 1); // 1 more for the hyphen
+
if (s == "")
return "*";
@@ -285,6 +314,7 @@ class CSSClass
public static const CSSSelector:int = 0;
public static const CSSCondition:int = 1;
public static const CSSStyleDeclaration:int = 2;
+ public static const CSSMediaQuery:int = 3;
}
class CSSFactory
[18/18] git commit: [flex-asjs] [refs/heads/develop] - fix up
deploy/install scripts
Posted by ah...@apache.org.
fix up deploy/install scripts
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/52d35044
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/52d35044
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/52d35044
Branch: refs/heads/develop
Commit: 52d3504415d7a27e0940d4d80b7ad35bc45f50e1
Parents: 3688bc7
Author: Alex Harui <ah...@apache.org>
Authored: Sun Nov 24 21:55:54 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Nov 24 21:55:54 2013 -0800
----------------------------------------------------------------------
scripts/deploy.bat | 210 ++++++++++++++++++-----------------------
scripts/deploy.sh | 145 +++++++++++++---------------
scripts/setuplaunches.bat | 48 ++++------
scripts/setuplaunches.sh | 8 +-
4 files changed, 185 insertions(+), 226 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d35044/scripts/deploy.bat
----------------------------------------------------------------------
diff --git a/scripts/deploy.bat b/scripts/deploy.bat
index a0b0eb8..58f7134 100755
--- a/scripts/deploy.bat
+++ b/scripts/deploy.bat
@@ -1,39 +1,31 @@
-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.
-
+@echo off
+REM ################################################################################
+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 ################################################################################
if "%~1" == "" goto error
goto check2
:error
-echo Usage: deploy.bat [absolute path to Apache Flex SDK] [absolute path to new folder]
+echo Usage: deploy.bat [absolute path to Apache Flex SDK]
goto end
:check2
-if "%~2" == "" goto error
if "%GOOG_HOME%" == "" goto nogoog
goto checkjava
@@ -50,96 +42,82 @@ echo JAVA_HOME environment variable not set. Set to folder containing bin\java.
goto end
:copyfiles
-echo "Copying Apache Flex SDK (be patient, lots of files)..."
-md %2
-xcopy /s %1\*.* %2
-
echo %~d0%~p0
setlocal
-set BASEDIR=%~d0%~p0
-echo Installing FlexJS files from %BASEDIR% to %2
-
-echo removing Flex files
-del /q %2\ant\lib\*.*
-del /q %2\bin\*.*
-del %2\lib\asc.jar
-del %2\lib\asdoc.jar
-del %2\lib\batik-all-flex.jar
-del %2\lib\compc.jar
-del %2\lib\copylocale.jar
-del %2\lib\digest.jar
-del %2\lib\fcsh.jar
-del %2\lib\fdb.jar
-del %2\lib\flex-compiler-oem.jar
-del %2\lib\fxgutils.jar
-del /q %2\lib\mxmlc_*.jar
-del %2\lib\optimizer.jar
-del %2\lib\swcdepends.jar
-del %2\lib\swfdump.jar
-del %2\lib\swfutils.jar
-del %2\lib\velocity-dep-1.4-flex.jar
-
-del /q /s %2\lib\external\*.*
-rd /q /s %2\lib\external
-del %2\flex-sdk-description.xml
-del %2\frameworks\flex-config.xml
-del /q %2\frameworks\libs\automation\*.*
-rd /q %2\frameworks\libs\automation
-del /q %2\frameworks\libs\mobile\*.*
-rd /q %2\frameworks\libs\mobile
-del /q %2\frameworks\libs\mx\*.*
-rem rd %2\frameworks\libs\mx FB needs this
-
-
del /q %2\frameworks\libs\*.*
-
-
-
-
-
-echo copying Falcon files"
-xcopy /y /s "%BASEDIR%\ant\lib\*.*" %2\ant\lib
-
-xcopy /y /s "%BASEDIR%\bin\*.*" %2\bin
-
-md %2\bin-legacy
-
-xcopy /y /s "%BASEDIR%\bin-legacy\*.*" %2\bin-legacy
-
-xcopy /y /s "%BASEDIR%\lib\*.*" %2\lib
-
-
-echo copying FalconJS files
-
-md %2\js
-
-xcopy /y /s "%BASEDIR%\js\*.*" %2\js
-
-
-echo copying FlexJS files
-
-xcopy /y /s "%BASEDIR%\frameworks\libs\*.*" %2\frameworks\libs
-
-md %2\frameworks\as
-mkdir %2\frameworks\as\src
-
-xcopy /y /s "%BASEDIR%\frameworks\src\*.*" %2\frameworks\as\src
-
-
-move %2\frameworks\as\src\basic-manifest.xml %2\frameworks
-
-move %2\frameworks\as\src\html5-manifest.xml %2\frameworks
-
-move %2\frameworks\as\src\flex-sdk-description.xml %2
-
-move %2\frameworks\as\src\flex-config.xml %2\frameworks
-
-
-endlocal
-
-copy %1\bin\adl.* %2\bin
-copy %1\bin\adt.* %2\bin
-
-setuplaunches.bat %2 "%JAVA_HOME%\bin\java.exe"
+set IDE_SDK_DIR=%~d0%~p0
+if "%IDE_SDK_DIR:~-1%"=="\" SET IDE_SDK_DIR=%IDE_SDK_DIR:~0,-1%
+set FLEX_SDK_DIR=%~1
+
+REM
+REM Copy all the AIR SDK files to the IDE SDK.
+REM Copy files first, then directories with (/s).
+REM
+:copyAdobeAIRSDK
+echo Copying the AIR SDK files from %FLEX_SDK_DIR% to %IDE_SDK_DIR%
+mkdir %IDE_SDK_DIR%\samples
+
+for %%G in (
+ "AIR SDK license.pdf"
+ "AIR SDK Readme.txt"
+ bin\adl.exe
+ bin\adt.bat
+ lib\adt.jar
+ samples\descriptor-sample.xml) do (
+
+ if exist %FLEX_SDK_DIR%\%%G (
+ copy /y %FLEX_SDK_DIR%\%%G %IDE_SDK_DIR%\%%G
+ )
+)
+
+for %%G in (
+ frameworks\libs\air
+ frameworks\projects\air
+ include
+ install\android
+ lib\android
+ lib\aot
+ lib\nai
+ lib\win
+ runtimes\air\android
+ runtimes\air\mac
+ runtimes\air\win
+ runtimes\air-captive\mac
+ runtimes\air-captive\win
+ samples\badge
+ samples\icons
+ templates\air
+ templates\extensions) do (
+
+ if exist %FLEX_SDK_DIR%\%%G (
+ REM Make the directory so it won't prompt for file or directory.
+ if not exist %IDE_SDK_DIR%\%%G mkdir %IDE_SDK_DIR%\%%G
+ xcopy /q /y /e /i /c /r %FLEX_SDK_DIR%\%%G %IDE_SDK_DIR%\%%G
+ if %errorlevel% NEQ 0 GOTO end
+ )
+)
+
+
+mkdir %IDE_SDK_DIR%\frameworks\libs\player
+xcopy /q /y /e /i /c /r %FLEX_SDK_DIR%\frameworks\libs\player %IDE_SDK_DIR%\frameworks\libs\player
+mkdir %IDE_SDK_DIR%\ide
+mkdir %IDE_SDK_DIR%\ide\flashbuilder
+copy /y %FLEX_SDK_DIR%\ide\flashbuilder\flashbuilder-config.xml %IDE_SDK_DIR%\ide\flashbuilder\
+copy /y %FLEX_SDK_DIR%\frameworks\mxml-manifest.xml %IDE_SDK_DIR%\frameworks
+copy /y %FLEX_SDK_DIR%\frameworks\spark-manifest.xml %IDE_SDK_DIR%\frameworks
+mkdir %IDE_SDK_DIR%\frameworks\themes
+mkdir %IDE_SDK_DIR%\frameworks\themes\Halo
+copy /y %FLEX_SDK_DIR%\frameworks\themes\Halo\halo.swc %IDE_SDK_DIR%\frameworks\themes\Halo
+copy /y %FLEX_SDK_DIR%\frameworks\macfonts.ser %IDE_SDK_DIR%\frameworks
+copy /y %FLEX_SDK_DIR%\frameworks\localFonts.ser %IDE_SDK_DIR%\frameworks
+copy /y %FLEX_SDK_DIR%\frameworks\macfonts.ser %IDE_SDK_DIR%\frameworks
+copy /y %IDE_SDK_DIR%\frameworks\air-config.xml %IDE_SDK_DIR%\frameworks\airmobile-config.xml
+mkdir %IDE_SDK_DIR%\frameworks\locale
+mkdir %IDE_SDK_DIR%\frameworks\mx
+mkdir %IDE_SDK_DIR%\frameworks\projects
+mkdir %IDE_SDK_DIR%\frameworks\rsls
+
+echo Setting up Launch Configs
+setuplaunches.bat %IDE_SDK_DIR% "%JAVA_HOME%\bin\java.exe"
:end
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d35044/scripts/deploy.sh
----------------------------------------------------------------------
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 271e4c4..aa96456 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -18,6 +18,26 @@
##
################################################################################
+# copyFileOrDirectory from ADOBE_FLEX_SDK_DIR to IDE_SDK_DIR
+# param1 is file or directory to copy
+copyFileOrDirectory()
+{
+ f="$1"
+
+ dir=`dirname "${BASEDIR}/$f"`
+
+ echo Copying $f to ${dir}
+
+ if [ -f "${FLEX_SDK_DIR}/$f" ] ; then
+ mkdir -p "${dir}"
+ cp -p "${FLEX_SDK_DIR}/$f" "${BASEDIR}/$f"
+ fi
+
+ if [ -d "${FLEX_SDK_DIR}/$f" ] ; then
+ rsync --archive --ignore-existing --force "${FLEX_SDK_DIR}/$f" "${dir}"
+ fi
+}
+
i=0
argv=()
for arg in "$@"; do
@@ -27,17 +47,7 @@ done
if [ "${argv[0]}" = "" ]
then
- echo "Usage: deploy.sh <path to existing Apache Flex SDK> <path to new folder>"
- exit
-fi
-if [ "${argv[1]}" = "" ]
- then
- echo "Usage: deploy.sh <path to existing Apache Flex SDK> <path to new folder>"
- exit
-fi
-if [ -d "${argv[1]}" ]
- then
- echo "Error: folder already exists"
+ echo "Usage: deploy.sh <path to existing Apache Flex SDK>"
exit
fi
if [ "$GOOG_HOME" = "" ]
@@ -50,75 +60,54 @@ if [ "$JAVA_HOME" = "" ]
JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
fi
-echo "Copying Apache Flex SDK (be patient, lots of files)..."
-mkdir -pv "${argv[1]}"
-if [ ! -d "${argv[1]}" ]
- then
- echo "Error: creating destination folder '${argv[1]}'"
- exit
+FLEX_SDK_DIR="${argv[0]}"
+RELBASEDIR=$(dirname $0)
+if [ "$RELBASEDIR" = "" ]
+ then
+ echo "Could not determine script folder. Did you use '. deploy.sh' instead of './deploy.sh'?"
+ exit
fi
-DESTDIR=`cd "${argv[1]}"; pwd`
-cp -r "${argv[0]}"/* "$DESTDIR"
-
-BASEDIR=$(dirname $0)
-echo "Installing FlexJS files from $BASEDIR to $DESTDIR"
+BASEDIR=`cd "$RELBASEDIR"; pwd`
-echo "Removing Flex files"
-rm -f "$DESTDIR/ant/lib"/*
-rm "$DESTDIR/bin"/*
-rm "$DESTDIR/lib/asc.jar"
-rm "$DESTDIR/lib/asdoc.jar"
-rm "$DESTDIR/lib/batik-all-flex.jar"
-rm "$DESTDIR/lib/compc.jar"
-rm "$DESTDIR/lib/copylocale.jar"
-rm "$DESTDIR/lib/digest.jar"
-rm "$DESTDIR/lib/fcsh.jar"
-rm "$DESTDIR/lib/fdb.jar"
-rm "$DESTDIR/lib/flex-compiler-oem.jar"
-rm "$DESTDIR/lib/fxgutils.jar"
-rm "$DESTDIR/lib"/mxmlc_*.jar
-rm "$DESTDIR/lib/optimizer.jar"
-rm "$DESTDIR/lib/swcdepends.jar"
-rm "$DESTDIR/lib/swfdump.jar"
-rm "$DESTDIR/lib/swfutils.jar"
-rm "$DESTDIR/lib/velocity-dep-1.4-flex.jar"
-rm -r "$DESTDIR/lib/external"/*
-rmdir "$DESTDIR/lib/external"
-rm "$DESTDIR/flex-sdk-description.xml"
-rm "$DESTDIR/frameworks/flex-config.xml"
-rm "$DESTDIR/frameworks/libs/automation"/*
-rmdir "$DESTDIR/frameworks/libs/automation"
-rm "$DESTDIR/frameworks/libs/mobile"/*
-rmdir "$DESTDIR/frameworks/libs/mobile"
-rm "$DESTDIR/frameworks/libs/mx"/*
-# rmdir "$DESTDIR/frameworks/libs/mx" FB needs this
-rm "$DESTDIR/frameworks/libs"/*
-
-echo "Copying Falcon files"
-mkdir -p "$DESTDIR/ant/lib"
-cp -r "$BASEDIR/ant/lib"/* "$DESTDIR/ant/lib"
-cp -r "$BASEDIR/bin"/* "$DESTDIR/bin"
-mkdir "$DESTDIR/bin-legacy"
-cp -r "$BASEDIR/bin-legacy"/* "$DESTDIR/bin-legacy"
-cp -r "$BASEDIR/lib"/* "$DESTDIR/lib"
-
-echo "Copying FalconJS files"
-mkdir "$DESTDIR/js"
-cp -r "$BASEDIR/js"/* "$DESTDIR/js"
-
-echo "Copying FlexJS files"
-cp -r "$BASEDIR/frameworks/libs"/* "$DESTDIR/frameworks/libs"
-mkdir "$DESTDIR/frameworks/as"
-mkdir "$DESTDIR/frameworks/as/src"
-cp -r "$BASEDIR/frameworks/src"/* "$DESTDIR/frameworks/as/src"
+echo "Copying AIR and Flash SDK from ${FLEX_SDK_DIR} to ${BASEDIR}"
+files=(
+ "AIR SDK license.pdf"
+ "AIR SDK Readme.txt"
+ bin/adl.exe
+ bin/adt.bat
+ frameworks/libs/air
+ frameworks/libs/player
+ frameworks/projects/air
+ include
+ install/android
+ lib/adt.jar
+ lib/android
+ lib/aot
+ lib/nai
+ lib/win
+ runtimes
+ samples/badge
+ samples/descriptor-sample.xml
+ samples/icons
+ templates/air
+ templates/extensions)
+for file in "${files[@]}"
+do
+ copyFileOrDirectory "$file"
+done
-mv "$DESTDIR/frameworks/as/src/basic-manifest.xml" "$DESTDIR/frameworks"
-mv "$DESTDIR/frameworks/as/src/html5-manifest.xml" "$DESTDIR/frameworks"
-mv "$DESTDIR/frameworks/as/src/flex-sdk-description.xml" "$DESTDIR"
-mv "$DESTDIR/frameworks/as/src/flex-config.xml" "$DESTDIR/frameworks"
+copyFileOrDirectory ide/flashbuilder/flashbuilder-config.xml
+copyFileOrDirectory frameworks/mxml-manifest.xml
+copyFileOrDirectory frameworks/spark-manifest.xml
+copyFileOrDirectory frameworks/themes/Halo/halo.swc
+copyFileOrDirectory frameworks/macfonts.ser
+copyFileOrDirectory frameworks/winfonts.ser
+cp frameworks/air-config.xml frameworks/airmobile-config.xml
+mkdir frameworks/locale
+mkdir frameworks/mx
+mkdir frameworks/projects
+mkdir frameworks/rsls
-# needed for AIR apps
-cp "${argv[0]}/bin/adl" "$DESTDIR/bin"
-cp "${argv[0]}/bin/adt" "$DESTDIR/bin"
-./setuplaunches.sh "$DESTDIR" $JAVA_HOME/bin/java
+echo "Setting up Launch Configs"
+./setuplaunches.sh "$BASEDIR" $JAVA_HOME/bin/java
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d35044/scripts/setuplaunches.bat
----------------------------------------------------------------------
diff --git a/scripts/setuplaunches.bat b/scripts/setuplaunches.bat
index c01af14..36fb060 100755
--- a/scripts/setuplaunches.bat
+++ b/scripts/setuplaunches.bat
@@ -1,30 +1,22 @@
@echo off
-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 ## 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 ################################################################################
if "%~1" == "" goto usage
goto check2
@@ -82,7 +74,7 @@ echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide
echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
-echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\js\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\frameworks\js\FlexJS\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
set FILENAME=FlexJS (COMPC).launch
@@ -108,7 +100,7 @@ echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide
echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
-echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\js\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\frameworks\js\FlexJS\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
endlocal
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d35044/scripts/setuplaunches.sh
----------------------------------------------------------------------
diff --git a/scripts/setuplaunches.sh b/scripts/setuplaunches.sh
index 443ba45..e7312c3 100755
--- a/scripts/setuplaunches.sh
+++ b/scripts/setuplaunches.sh
@@ -27,12 +27,12 @@ done
if [ "${argv[0]}" = "" ]
then
- echo "Usage: setuplaunches <absolute path to Apache Flex SDK> <absolute path to Java executable>"
+ echo "Usage: setuplaunches <absolute path to Apache FlexJS SDK> <absolute path to Java executable>"
exit
fi
if [ "${argv[1]}" = "" ]
then
- echo "Usage: setuplaunches <absolute path to Apache Flex SDK> <absolute path to Java executable>"
+ echo "Usage: setuplaunches <absolute path to Apache FlexJS SDK> <absolute path to Java executable>"
exit
fi
if [ ! -d "${argv[0]}/frameworks/" ]
@@ -83,7 +83,7 @@ echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[
echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
-echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/mxmlc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib="$GOOG_HOME" -sdk-js-lib="${argv[0]}/js/src" -fb "\${project_loc}"'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/mxmlc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib="$GOOG_HOME" -sdk-js-lib="${argv[0]}/frameworks/js/FlexJS/src" -fb "\${project_loc}"'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
FILENAME="FlexJS (COMPC).launch"
@@ -109,5 +109,5 @@ echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[
echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
-echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/compc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=$GOOG_HOME -sdk-js-lib=${argv[0]}/js/src -fb "\${project_loc}"' />" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/compc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=$GOOG_HOME -sdk-js-lib=${argv[0]}/frameworks/js/FlexJS/src -fb "\${project_loc}"' />" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
[04/18] git commit: [flex-asjs] [refs/heads/develop] - Somehow,
stepSize went missing. Restored
Posted by ah...@apache.org.
Somehow, stepSize went missing. Restored
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/34543167
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/34543167
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/34543167
Branch: refs/heads/develop
Commit: 345431675d96b4008edbc305b986cee750e32e82
Parents: 52d4292
Author: Alex Harui <ah...@apache.org>
Authored: Wed Nov 20 23:18:18 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Nov 20 23:18:18 2013 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/html/staticControls/Slider.as | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/34543167/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/Slider.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/Slider.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/Slider.as
index 47a0db5..f73109d 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/Slider.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/Slider.as
@@ -73,5 +73,15 @@ package org.apache.flex.html.staticControls
{
IRangeModel(model).snapInterval = value;
}
- }
+
+ public function get stepSize():Number
+ {
+ return IRangeModel(model).stepSize;
+ }
+ public function set stepSize(value:Number):void
+ {
+ IRangeModel(model).stepSize = value;
+ }
+
+ }
}
\ No newline at end of file
[02/18] git commit: [flex-asjs] [refs/heads/develop] - mucking with
FlexJS build to make it more Apache-like
Posted by ah...@apache.org.
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.
[05/18] git commit: [flex-asjs] [refs/heads/develop] - build scripts
for examples
Posted by ah...@apache.org.
build scripts for examples
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fdaeaae6
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fdaeaae6
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fdaeaae6
Branch: refs/heads/develop
Commit: fdaeaae6168dd641dbbec19a04b0b27d80bf2554
Parents: 3454316
Author: Alex Harui <ah...@apache.org>
Authored: Thu Nov 21 07:44:54 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Nov 21 07:44:54 2013 -0800
----------------------------------------------------------------------
build.xml | 16 +-
examples/DataBindingTest/build.xml | 141 +--------------
examples/DataGridExample/build.xml | 42 +++++
examples/FlexJSTest_HTML5/build.xml | 42 +++++
examples/FlexJSTest_Panel/build.xml | 42 +++++
examples/FlexJSTest_SVG/build.xml | 42 +++++
examples/FlexJSTest_basic/build.xml | 42 +++++
examples/FlexJSTest_createjs/build.xml | 42 +++++
examples/FlexJSTest_jquery/build.xml | 42 +++++
examples/LanguageTests/build.xml | 42 +++++
examples/ListsTest/build.xml | 42 +++++
examples/StatesTest/build.xml | 42 +++++
examples/StockQuote/build.xml | 42 +++++
examples/build.xml | 6 -
examples/build_example.xml | 255 ++++++++++++++++++++++++++++
15 files changed, 738 insertions(+), 142 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index dff25eb..a9277a3 100644
--- a/build.xml
+++ b/build.xml
@@ -180,6 +180,20 @@
unless="AIR_HOME.set"/>
</target>
+ <target name="check-goog-home" unless="GOOG_HOME"
+ description="Check that GOOG_HOME is a directory">
+
+ <echo message="GOOG_HOME is ${env.GOOG_HOME}"/>
+
+ <available file="${env.GOOG_HOME}"
+ type="dir"
+ property="GOOG_HOME"
+ value="${env.GOOG_HOME}" />
+
+ <fail message="The environment variable GOOG_HOME must be set to the Google Closure Library folder containg a 'closure' and 'third_party' folder"
+ unless="GOOG_HOME"/>
+ </target>
+
<target name="check-flex-home" unless="mxmlc.jar.exists"
description="Check FLEX_HOME for both a directory and an exe file">
@@ -342,7 +356,7 @@
-->
<target name="examples" description="Build the examples"
- depends="prebuild">
+ depends="prebuild,check-goog-home">
<ant dir="${basedir}/examples"/>
</target>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/DataBindingTest/build.xml
----------------------------------------------------------------------
diff --git a/examples/DataBindingTest/build.xml b/examples/DataBindingTest/build.xml
index 7b4c336..a37740c 100644
--- a/examples/DataBindingTest/build.xml
+++ b/examples/DataBindingTest/build.xml
@@ -21,13 +21,18 @@
<project name="databindingtest" default="main" basedir=".">
<property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="DataBindingTest" />
<property file="${FLEXJS_HOME}/env.properties"/>
<property environment="env"/>
<property file="${FLEXJS_HOME}/build.properties"/>
<property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+ <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
+ <property name="GOOG_HOME" value="${env.GOOG_HOME}"/>
- <target name="main" depends="clean,compile" description="Clean build of FlexJSUI.swc">
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
</target>
<target name="clean">
@@ -36,140 +41,6 @@
<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/fdaeaae6/examples/DataGridExample/build.xml
----------------------------------------------------------------------
diff --git a/examples/DataGridExample/build.xml b/examples/DataGridExample/build.xml
new file mode 100644
index 0000000..e6db422
--- /dev/null
+++ b/examples/DataGridExample/build.xml
@@ -0,0 +1,42 @@
+<?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="datagridexample" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="DataGridExample" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_HTML5/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_HTML5/build.xml b/examples/FlexJSTest_HTML5/build.xml
new file mode 100644
index 0000000..becc1ff
--- /dev/null
+++ b/examples/FlexJSTest_HTML5/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_HTML5" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="FlexJSTest_again" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_Panel/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_Panel/build.xml b/examples/FlexJSTest_Panel/build.xml
new file mode 100644
index 0000000..4dd41e2
--- /dev/null
+++ b/examples/FlexJSTest_Panel/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_Panel" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="FlexJSTest_Panel" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_SVG/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_SVG/build.xml b/examples/FlexJSTest_SVG/build.xml
new file mode 100644
index 0000000..d478a42
--- /dev/null
+++ b/examples/FlexJSTest_SVG/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_SVG" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="FlexJSTest_again" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_basic/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_basic/build.xml b/examples/FlexJSTest_basic/build.xml
new file mode 100644
index 0000000..7675a2c
--- /dev/null
+++ b/examples/FlexJSTest_basic/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_basic" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="FlexJSTest_basic" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" 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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_createjs/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_createjs/build.xml b/examples/FlexJSTest_createjs/build.xml
new file mode 100644
index 0000000..88ca6ba
--- /dev/null
+++ b/examples/FlexJSTest_createjs/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_createjs" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="CreateJSExample" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/FlexJSTest_jquery/build.xml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_jquery/build.xml b/examples/FlexJSTest_jquery/build.xml
new file mode 100644
index 0000000..50ed81b
--- /dev/null
+++ b/examples/FlexJSTest_jquery/build.xml
@@ -0,0 +1,42 @@
+<?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="flexjstest_jquery" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="jQuerySample" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/LanguageTests/build.xml
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/build.xml b/examples/LanguageTests/build.xml
new file mode 100644
index 0000000..50d8d35
--- /dev/null
+++ b/examples/LanguageTests/build.xml
@@ -0,0 +1,42 @@
+<?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="languagetests" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="LanguageTests" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compileas,build_example.compileasjs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/ListsTest/build.xml
----------------------------------------------------------------------
diff --git a/examples/ListsTest/build.xml b/examples/ListsTest/build.xml
new file mode 100644
index 0000000..12a0be6
--- /dev/null
+++ b/examples/ListsTest/build.xml
@@ -0,0 +1,42 @@
+<?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="liststest" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="ListsTests" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/StatesTest/build.xml
----------------------------------------------------------------------
diff --git a/examples/StatesTest/build.xml b/examples/StatesTest/build.xml
new file mode 100644
index 0000000..c8369ff
--- /dev/null
+++ b/examples/StatesTest/build.xml
@@ -0,0 +1,42 @@
+<?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="statestest" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="StatesTest" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/StockQuote/build.xml
----------------------------------------------------------------------
diff --git a/examples/StockQuote/build.xml b/examples/StockQuote/build.xml
new file mode 100644
index 0000000..4624edb
--- /dev/null
+++ b/examples/StockQuote/build.xml
@@ -0,0 +1,42 @@
+<?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="stockquote" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+ <property name="example" value="StockQuote" />
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
+
+ <include file="${basedir}/../build_example.xml" />
+
+ <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fdaeaae6/examples/build.xml
----------------------------------------------------------------------
diff --git a/examples/build.xml b/examples/build.xml
index 0ba6baa..0fd2f7a 100644
--- a/examples/build.xml
+++ b/examples/build.xml
@@ -75,9 +75,7 @@
<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"/>
@@ -88,7 +86,6 @@
<ant dir="${basedir}/ListsTest"/>
<ant dir="${basedir}/StatesTest"/>
<ant dir="${basedir}/StockQuote"/>
- -->
</target>
<!--
@@ -103,9 +100,7 @@
<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"/>
@@ -116,7 +111,6 @@
<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/fdaeaae6/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
new file mode 100644
index 0000000..e69c8c6
--- /dev/null
+++ b/examples/build_example.xml
@@ -0,0 +1,255 @@
+<?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="build_example" basedir=".">
+
+ <path id="lib.path">
+ <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+ </path>
+
+ <target name="compile" description="Compiles ${example}">
+ <echo message="Compiling ${example}.swf"/>
+ <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/${example}.mxml"
+ output="${basedir}/bin-debug/${example}.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="${example}"
+ versionmajor="11"
+ versionminor="1"
+ versionrevision="0"
+ output="${basedir}/bin-debug"/>
+
+ </target>
+
+ <target name="compileas" description="Compiles ${example}">
+ <echo message="Compiling ${example}.swf"/>
+ <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/${example}.as"
+ output="${basedir}/bin-debug/${example}.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="${example}"
+ versionmajor="11"
+ versionminor="1"
+ versionrevision="0"
+ output="${basedir}/bin-debug"/>
+
+ </target>
+
+ <target name="compilejs" description="Cross-compiles ${example}">
+ <echo message="Compiling ${example}.js"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <echo message="GOOG_HOME: ${GOOG_HOME}"/>
+
+ <java jar="${FALCONJX_HOME}/lib/mxmlc.jar"
+ fork="true">
+ <jvmarg line="${mxmlc.jvm.args}"/>
+ <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
+ <arg value="+flexlib=${FLEXJS_HOME}/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}" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-closure-lib=${GOOG_HOME}" />
+ <arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src" />
+ <arg value="${basedir}/src/${example}.mxml" />
+ </java>
+
+ </target>
+
+ <target name="compileasjs" description="Cross-compiles ${example}">
+ <echo message="Compiling ${example}.js"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+ <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+ <echo message="GOOG_HOME: ${GOOG_HOME}"/>
+
+ <java jar="${FALCONJX_HOME}/lib/mxmlc.jar"
+ fork="true">
+ <jvmarg line="${mxmlc.jvm.args}"/>
+ <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
+ <arg value="+flexlib=${FLEXJS_HOME}/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}" />
+ <arg value="-js-output-type=FLEXJS" />
+ <arg value="-closure-lib=${GOOG_HOME}" />
+ <arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src" />
+ <arg value="${basedir}/src/${example}.as" />
+ </java>
+
+ </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>
[15/18] git commit: [flex-asjs] [refs/heads/develop] - add missing
licenses
Posted by ah...@apache.org.
add missing licenses
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f2c456cd
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f2c456cd
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f2c456cd
Branch: refs/heads/develop
Commit: f2c456cde8e70b1c1069146a08ecd1993c262cf1
Parents: 6eacf61
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 16:09:13 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 16:09:13 2013 -0800
----------------------------------------------------------------------
examples/LanguageTests/src/LanguageTests.as | 18 ++++++++++++++++++
examples/LanguageTests/src/classes/B.as | 18 ++++++++++++++++++
examples/LanguageTests/src/classes/C.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/IA.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/IB.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/IC.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/ID.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/IE.as | 18 ++++++++++++++++++
examples/LanguageTests/src/interfaces/IF.as | 18 ++++++++++++++++++
.../StockQuote/src/StockDataJSONItemConverter.as | 18 ++++++++++++++++++
examples/StockQuote/src/StockQuote.mxml | 18 ++++++++++++++++++
11 files changed, 198 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/LanguageTests.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/LanguageTests.as b/examples/LanguageTests/src/LanguageTests.as
index e465f49..af93aef 100644
--- a/examples/LanguageTests/src/LanguageTests.as
+++ b/examples/LanguageTests/src/LanguageTests.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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
{
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/classes/B.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/classes/B.as b/examples/LanguageTests/src/classes/B.as
index bbc5c44..d8bd2c7 100644
--- a/examples/LanguageTests/src/classes/B.as
+++ b/examples/LanguageTests/src/classes/B.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 classes
{
public class B extends C
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/classes/C.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/classes/C.as b/examples/LanguageTests/src/classes/C.as
index 90368fb..fe49eb5 100644
--- a/examples/LanguageTests/src/classes/C.as
+++ b/examples/LanguageTests/src/classes/C.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 classes
{
import interfaces.IF;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/IA.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/IA.as b/examples/LanguageTests/src/interfaces/IA.as
index b288321..5fbd6c2 100644
--- a/examples/LanguageTests/src/interfaces/IA.as
+++ b/examples/LanguageTests/src/interfaces/IA.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface IA extends IC {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/IB.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/IB.as b/examples/LanguageTests/src/interfaces/IB.as
index b6f8925..a995635 100644
--- a/examples/LanguageTests/src/interfaces/IB.as
+++ b/examples/LanguageTests/src/interfaces/IB.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface IB {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/IC.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/IC.as b/examples/LanguageTests/src/interfaces/IC.as
index 9fcdd56..9183bac 100644
--- a/examples/LanguageTests/src/interfaces/IC.as
+++ b/examples/LanguageTests/src/interfaces/IC.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface IC extends ID {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/ID.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/ID.as b/examples/LanguageTests/src/interfaces/ID.as
index 1bae05b..d5e9543 100644
--- a/examples/LanguageTests/src/interfaces/ID.as
+++ b/examples/LanguageTests/src/interfaces/ID.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface ID {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/IE.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/IE.as b/examples/LanguageTests/src/interfaces/IE.as
index b40e49e..ae1848a 100644
--- a/examples/LanguageTests/src/interfaces/IE.as
+++ b/examples/LanguageTests/src/interfaces/IE.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface IE {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/LanguageTests/src/interfaces/IF.as
----------------------------------------------------------------------
diff --git a/examples/LanguageTests/src/interfaces/IF.as b/examples/LanguageTests/src/interfaces/IF.as
index 487862e..f62be45 100644
--- a/examples/LanguageTests/src/interfaces/IF.as
+++ b/examples/LanguageTests/src/interfaces/IF.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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 interfaces
{
public interface IF {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/StockQuote/src/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/examples/StockQuote/src/StockDataJSONItemConverter.as b/examples/StockQuote/src/StockDataJSONItemConverter.as
index b2cb76d..b373d3b 100644
--- a/examples/StockQuote/src/StockDataJSONItemConverter.as
+++ b/examples/StockQuote/src/StockDataJSONItemConverter.as
@@ -1,3 +1,21 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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
{
import org.apache.flex.net.JSONItemConverter;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f2c456cd/examples/StockQuote/src/StockQuote.mxml
----------------------------------------------------------------------
diff --git a/examples/StockQuote/src/StockQuote.mxml b/examples/StockQuote/src/StockQuote.mxml
index de830d4..3f2d454 100644
--- a/examples/StockQuote/src/StockQuote.mxml
+++ b/examples/StockQuote/src/StockQuote.mxml
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+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.
+
+-->
<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:local="*"
xmlns:basic="library://ns.apache.org/flexjs/basic"
[14/18] git commit: [flex-asjs] [refs/heads/develop] -
apache-compatible release packages
Posted by ah...@apache.org.
apache-compatible release packages
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6eacf61f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6eacf61f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6eacf61f
Branch: refs/heads/develop
Commit: 6eacf61fb94c064d17cb7384cc46606a927ba94d
Parents: 949b24d
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 16:08:58 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 16:08:58 2013 -0800
----------------------------------------------------------------------
build.xml | 70 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 37 insertions(+), 33 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6eacf61f/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index a9277a3..f3c3d27 100644
--- a/build.xml
+++ b/build.xml
@@ -462,7 +462,7 @@
<!-- frameworks/as -->
<antcall target="stage-framework-as"/>
- <!-- frameworks/as -->
+ <!-- frameworks/js -->
<antcall target="stage-framework-js"/>
<!-- asdoc
@@ -486,11 +486,16 @@
<!-- samples -->
<copy todir="${basedir}/temp/examples">
<fileset dir="${basedir}/examples" >
+ <exclude name="**/FlexJSTest_again/**" />
+ <exclude name="**/VanillaSDK_POC/**" />
<exclude name="**/*.swc"/>
<exclude name="**/*.swf"/>
</fileset>
</copy>
+ <!-- scripts -->
+ <antcall target="stage-scripts"/>
+
<!-- templates
<copy todir="${basedir}/temp/templates">
<fileset dir="${basedir}/templates" >
@@ -533,8 +538,8 @@
<!-- frameworks -->
<!-- javascript and test directories follow -->
<target name="stage-framework-as">
- <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
- <fileset dir="${basedir}/frameworks/as/projects/FlexJSUI/src">
+ <copy todir="${basedir}/temp/frameworks/as" includeEmptyDirs="false">
+ <fileset dir="${basedir}/frameworks/as">
<include name="**"/>
<exclude name="**/libs/**"/>
<exclude name="**/*.swc"/>
@@ -549,21 +554,10 @@
<exclude name="projects/*/.settings/**"/>
</fileset>
</copy>
- <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
- <fileset dir="${basedir}/frameworks/as/projects/FlexJSUI">
- <include name="basic-manifest.xml"/>
- <include name="html5-manifest.xml"/>
- </fileset>
- </copy>
- <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
+ <copy todir="${basedir}/temp/frameworks/as" includeEmptyDirs="false">
<fileset dir="${basedir}/frameworks/as">
- <include name="air-config.xml"/>
- <include name="flex-config.xml"/>
- </fileset>
- </copy>
- <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
- <fileset dir="${basedir}">
- <include name="flex-sdk-description.xml"/>
+ <include name="air-config-template.xml"/>
+ <include name="flex-config-template.xml"/>
</fileset>
</copy>
@@ -574,9 +568,9 @@
<!-- now that config xml files are in temp, fix them up for release. -->
<echo message="Updating config file air-config.xml with version ${build.version}"/>
- <fix-config-file file="${basedir}/temp/frameworks/src/air-config.xml" version="${build.version}" />
+ <fix-config-file file="${basedir}/temp/frameworks/as/air-config-template.xml" version="${build.version}" />
<echo message="Updating config file flex-config.xml with version ${build.version}"/>
- <fix-config-file file="${basedir}/temp/frameworks/src/flex-config.xml" version="${build.version}" />
+ <fix-config-file file="${basedir}/temp/frameworks/as/flex-config-template.xml" version="${build.version}" />
<!-- Update all Version.as files in the kit frameworks directory with build.number -->
<!--<antcall target="version-update"/>-->
@@ -584,11 +578,17 @@
<!-- tlf -->
<target name="stage-framework-js">
- <copy todir="${basedir}/temp/js/src" includeEmptyDirs="false">
+ <copy todir="${basedir}/temp/frameworks/js/FlexJS/src" includeEmptyDirs="false">
<fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS/src">
<include name="**"/>
</fileset>
</copy>
+ <copy todir="${basedir}/temp/frameworks/js" includeEmptyDirs="false">
+ <fileset dir="${FLEXJS_HOME}/frameworks/js">
+ <include name="build.xml"/>
+ <include name="jshint.properties"/>
+ </fileset>
+ </copy>
</target>
<target name="stage-falcon">
@@ -686,6 +686,15 @@
</target>
+ <target name="stage-scripts" description="package ide conversion scripts">
+ <!-- deploy scripts -->
+ <copy todir="${basedir}/temp/scripts">
+ <fileset dir="${basedir}/scripts" >
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+ </target>
+
<target name="binary-package"
description="Package binary files in zip and tar-gzip file.">
@@ -709,19 +718,21 @@
</concat-->
<!-- frameworks/libs -->
- <copy todir="${basedir}/temp/frameworks/libs">
+ <copy todir="${basedir}/temp/frameworks/as/libs">
<fileset dir="${basedir}/frameworks/as/libs">
<include name="FlexJSUI.swc"/>
<include name="MXMLCClasses.swc"/>
</fileset>
</copy>
- <!-- falcon -->
+ <!-- falcon
<antcall target="stage-falcon"/>
-
- <!-- falconjx -->
+ -->
+
+ <!-- falconjx
<antcall target="stage-falconjx"/>
-
+ -->
+
<!-- ide
<copy todir="${basedir}/temp/ide">
<fileset dir="${basedir}/ide" >
@@ -730,7 +741,7 @@
</copy>
-->
- <!-- sample themes -->
+ <!-- examples -->
<copy todir="${basedir}/temp/examples">
<fileset dir="${basedir}/examples" >
<include name="**/build.xml"/>
@@ -739,13 +750,6 @@
</fileset>
</copy>
- <!-- deploy scripts -->
- <copy todir="${basedir}/temp/">
- <fileset dir="${basedir}/scripts" >
- <include name="**/*"/>
- </fileset>
- </copy>
-
<!-- swfobject templates except for downloaded files
<copy todir="${basedir}/temp/templates/swfobject">
<fileset dir="${basedir}/templates/swfobject">
[03/18] git commit: [flex-asjs] [refs/heads/develop] - Fix event
handler in HTML5 version to match basic version to eliminate Closure Compiler
error
Posted by ah...@apache.org.
Fix event handler in HTML5 version to match basic version to eliminate Closure Compiler error
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/52d42925
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/52d42925
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/52d42925
Branch: refs/heads/develop
Commit: 52d42925f91148c83b9785ff23833d4f42cad12d
Parents: 102b167
Author: Alex Harui <ah...@apache.org>
Authored: Wed Nov 20 23:11:09 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Nov 20 23:11:09 2013 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/html5/staticControls/ComboBox.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/52d42925/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js b/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js
index 7931321..318005c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html5/staticControls/ComboBox.js
@@ -59,10 +59,10 @@ org.apache.flex.html5.staticControls.ComboBox.prototype.createElement =
this.positioner = this.element;
- // add a click handler to p's parentElement so that a click
- // outside of the combo box can dismiss the pop-up should it
- // be visible
- p.parentElement.onclick = goog.bind(this.dismissPopup, this);
+ // add a click handler so that a click outside of the combo box can
+ // dismiss the pop-up should it be visible.
+ goog.events.listen(document, 'click',
+ goog.bind(this.dismissPopup, this));
};
[13/18] git commit: [flex-asjs] [refs/heads/develop] - cleanup
gjslint errors
Posted by ah...@apache.org.
cleanup gjslint errors
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/949b24d9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/949b24d9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/949b24d9
Branch: refs/heads/develop
Commit: 949b24d917f996d4c5fcaa5e54de16a900c84e03
Parents: d3cec26
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 13:56:32 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 13:56:32 2013 -0800
----------------------------------------------------------------------
frameworks/js/FlexJS/src/createjs_externals.js | 3 ++-
frameworks/js/FlexJS/src/jquery_externals.js | 3 ++-
.../FlexJS/src/org/apache/flex/html/staticControls/Image.js | 2 +-
.../FlexJS/src/org/apache/flex/html/staticControls/List.js | 3 ++-
.../beads/DataItemRendererFactoryForArrayData.js | 8 ++++----
5 files changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/949b24d9/frameworks/js/FlexJS/src/createjs_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/createjs_externals.js b/frameworks/js/FlexJS/src/createjs_externals.js
index 0c6b72b..7daaff1 100644
--- a/frameworks/js/FlexJS/src/createjs_externals.js
+++ b/frameworks/js/FlexJS/src/createjs_externals.js
@@ -12,8 +12,9 @@
* limitations under the License.
*/
+
/**
* This file is used to establish external APIs so the closure-compiler
* can resolve references and won't minify names
*/
-function createjs() {};
+function createjs() {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/949b24d9/frameworks/js/FlexJS/src/jquery_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/jquery_externals.js b/frameworks/js/FlexJS/src/jquery_externals.js
index 2c7d0ce..a14392f 100644
--- a/frameworks/js/FlexJS/src/jquery_externals.js
+++ b/frameworks/js/FlexJS/src/jquery_externals.js
@@ -12,8 +12,9 @@
* limitations under the License.
*/
+
/**
* This file is used to establish external APIs so the closure-compiler
* can resolve references and won't minify names
*/
-function $() {};
+function $() {}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/949b24d9/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
index 5fde007..4446917 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
@@ -61,7 +61,7 @@ org.apache.flex.html.staticControls.Image.prototype.createElement =
this.addBead(new
org.apache.flex.html.staticControls.beads.ImageView());
-
+
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/949b24d9/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
index bfc60d3..7858482 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
@@ -69,7 +69,8 @@ org.apache.flex.html.staticControls.List.prototype.addedToParent =
var c = this.getBeadByType(org.apache.flex.core.IDataProviderItemRendererMapper);
if (org.apache.flex.core.ValuesManager.valuesImpl.getValue && !c) {
- c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this,'iDataProviderItemRendererMapper');
+ c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this,
+ 'iDataProviderItemRendererMapper');
if (c) {
var bead = new c;
this.addBead(bead);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/949b24d9/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
index b5c1531..6b28db6 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
@@ -16,8 +16,8 @@ goog.provide('org.apache.flex.html.staticControls.beads.DataItemRendererFactoryF
goog.require('org.apache.flex.core.IDataProviderItemRendererMapper');
goog.require('org.apache.flex.events.EventDispatcher');
-goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionModel');
goog.require('org.apache.flex.html.staticControls.beads.ListView');
+goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionModel');
goog.require('org.apache.flex.html.staticControls.supportClasses.ButtonBarButtonItemRenderer');
@@ -44,7 +44,7 @@ org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
/**
- * @expose
+ * @private
* @type {Object}
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
@@ -70,7 +70,7 @@ org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
goog.bind(this.dataProviderChangedHandler, this));
if (org.apache.flex.core.ValuesManager.valuesImpl.getValue && !this.itemRendererFactory_) {
- var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_,'iItemRendererClassFactory');
+ var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRendererClassFactory');
this.itemRendererFactory_ = new c;
this.strand_.addBead(this.itemRendererFactory_);
}
@@ -86,7 +86,7 @@ org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
prototype.get_itemRendererClass = function() {
if (org.apache.flex.core.ValuesManager.valuesImpl.getValue && !this.itemRendererClass_) {
- var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_,'iItemRenderer');
+ var c = org.apache.flex.core.ValuesManager.valuesImpl.getValue(this.strand_, 'iItemRenderer');
if (c) {
this.itemRendererClass_ = c;
}
[12/18] git commit: [flex-asjs] [refs/heads/develop] - add linting to
build script
Posted by ah...@apache.org.
add linting to build script
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d3cec262
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d3cec262
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d3cec262
Branch: refs/heads/develop
Commit: d3cec262364117cea6091426aebd00bb2f8d4d18
Parents: ba9331a
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 13:56:09 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 13:56:09 2013 -0800
----------------------------------------------------------------------
frameworks/js/build.xml | 21 +++++++++++++++++++++
frameworks/js/jshint.properties | 12 ++++++++++++
2 files changed, 33 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3cec262/frameworks/js/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/js/build.xml b/frameworks/js/build.xml
index ceb45f2..2cbf1a7 100644
--- a/frameworks/js/build.xml
+++ b/frameworks/js/build.xml
@@ -74,6 +74,27 @@
</target>
<target name="compile" description="Validates JS code">
+ <echo>running gjslint</echo>
+ <exec executable="gjslint" dir="${basedir}" failonerror="true">
+ <arg value="--strict" />
+ <arg value="--disable" />
+ <arg value="006,100,214,300" />
+ <!-- 006: wrong indentation -->
+ <!-- 100: cannot have non-primitive value -->
+ <!-- 214: @fileoverview tag missing description -->
+ <!-- 300: missing newline at end of file -->
+ <arg value="--max_line_length" />
+ <arg value="120" />
+ <arg value="-r" />
+ <arg value="FlexJS/src" />
+ </exec>
+ <echo>running jshint</echo>
+ <echo>set failonerror=true when we get this cleaned up</echo>
+ <exec executable="jshint" dir="${basedir}" failonerror="false">
+ <arg value="--config" />
+ <arg value="jshint.properties" />
+ <arg value="FlexJS/src" />
+ </exec>
</target>
<!--
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d3cec262/frameworks/js/jshint.properties
----------------------------------------------------------------------
diff --git a/frameworks/js/jshint.properties b/frameworks/js/jshint.properties
new file mode 100644
index 0000000..0a5920b
--- /dev/null
+++ b/frameworks/js/jshint.properties
@@ -0,0 +1,12 @@
+{
+ "curly": false,
+ "eqeqeq": false,
+ "eqnull": true,
+ "globalstrict": true,
+ "indent": 2,
+ "maxlen": 120,
+ "onevar": false,
+ "strict": false,
+ "white": false,
+ "globals": { "goog" : false, "org" : false }
+}
\ No newline at end of file
[11/18] git commit: [flex-asjs] [refs/heads/develop] - Make sure
AS-only beads are only seen as AS-only
Posted by ah...@apache.org.
Make sure AS-only beads are only seen as AS-only
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/ba9331ae
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/ba9331ae
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/ba9331ae
Branch: refs/heads/develop
Commit: ba9331ae8a11ba8a82c0375ddea7d50e9bae4ae7
Parents: d63b447
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:38:38 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:38:38 2013 -0800
----------------------------------------------------------------------
.../FlexJSTest_Panel/src/MyInitialView.mxml | 22 +++++++++++++++-----
examples/StockQuote/src/MyInitialView.mxml | 14 +++++++++++--
frameworks/as/projects/FlexJSUI/defaults.css | 10 +++++++++
.../as/projects/FlexJSUI/src/FlexJSUIClasses.as | 2 ++
.../flex/html/staticControls/beads/ListView.as | 6 ++++--
.../html/staticControls/beads/TextAreaView.as | 7 ++++---
.../beads/TextInputWithBorderView.as | 8 ++++---
7 files changed, 54 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/examples/FlexJSTest_Panel/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_Panel/src/MyInitialView.mxml b/examples/FlexJSTest_Panel/src/MyInitialView.mxml
index 48d3b1b..e5df7da 100644
--- a/examples/FlexJSTest_Panel/src/MyInitialView.mxml
+++ b/examples/FlexJSTest_Panel/src/MyInitialView.mxml
@@ -84,7 +84,6 @@ limitations under the License.
font-weight: bold;
text-align: center;
background-color: #444444;
- iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
}
.panel1 {
@@ -92,8 +91,6 @@ limitations under the License.
background-color: #EEEEEE;
border-color: #000000;
border-thickness: 1;
- iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
- iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
}
.numStepper {
@@ -101,10 +98,25 @@ limitations under the License.
border-color: #000000;
border-thickness: 1;
background-color: #FFFFCC;
- iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
- iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
}
+ @media -flex-flash
+ {
+ .TitleBar {
+ iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
+ }
+
+ .panel1 {
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
+ }
+
+ .numStepper {
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ iBackgroundBead: ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBead');
+ }
+
+ }
</fx:Style>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/examples/StockQuote/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/StockQuote/src/MyInitialView.mxml b/examples/StockQuote/src/MyInitialView.mxml
index 40ebc93..2b52faa 100644
--- a/examples/StockQuote/src/MyInitialView.mxml
+++ b/examples/StockQuote/src/MyInitialView.mxml
@@ -73,7 +73,6 @@ limitations under the License.
.leftSide {
vertical-align: top;
margin-right: 10px;
- iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
border-style: solid;
}
@@ -81,7 +80,6 @@ limitations under the License.
vertical-align: top;
margin-left: 10px;
padding-left: 10px;
- iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
border-style: solid;
}
@@ -89,6 +87,18 @@ limitations under the License.
margin-top: 10px;
margin-bottom: 10px;
}
+
+ @media -flex-flash
+ {
+
+ .leftSide {
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ }
+
+ .rightSide {
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ }
+ }
</fx:Style>
<basic:Container x="0" y="0" className="topContainer" >
<basic:beads>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/frameworks/as/projects/FlexJSUI/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/defaults.css b/frameworks/as/projects/FlexJSUI/defaults.css
index 69ffc96..d6a01cb 100644
--- a/frameworks/as/projects/FlexJSUI/defaults.css
+++ b/frameworks/as/projects/FlexJSUI/defaults.css
@@ -200,6 +200,12 @@ Label
iMeasurementBead: ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMeasurementBead");
}
+List
+{
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ iBorderModel: ClassReference('org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel');
+}
+
NumericStepper
{
IBeadModel: ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel");
@@ -276,6 +282,8 @@ TextArea
IBeadModel: ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel");
IBeadView: ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
IBeadController: ClassReference("org.apache.flex.html.staticControls.beads.controllers.EditableTextKeyboardController");
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ iBorderModel: ClassReference('org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel');
width: 135;
height: 20;
}
@@ -298,6 +306,8 @@ TextInput
IBeadModel: ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel");
IBeadView: ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBorderView");
IBeadController: ClassReference("org.apache.flex.html.staticControls.beads.controllers.EditableTextKeyboardController");
+ iBorderBead: ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderBead');
+ iBorderModel: ClassReference('org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel');
width: 135;
height: 20;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as b/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
index 1fe8a69..cf552ce 100644
--- a/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
+++ b/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
@@ -47,6 +47,7 @@ internal class FlexJSUIClasses
import org.apache.flex.html.staticControls.beads.RadioButtonView; RadioButtonView;
import org.apache.flex.html.staticControls.beads.ScrollBarView; ScrollBarView;
import org.apache.flex.html.staticControls.beads.SimpleAlertView; SimpleAlertView;
+ import org.apache.flex.html.staticControls.beads.SingleLineBorderBead; SingleLineBorderBead;
import org.apache.flex.html.staticControls.beads.SliderView; SliderView;
import org.apache.flex.html.staticControls.beads.SliderThumbView; SliderThumbView;
import org.apache.flex.html.staticControls.beads.SliderTrackView; SliderTrackView;
@@ -66,6 +67,7 @@ internal class FlexJSUIClasses
import org.apache.flex.html.staticControls.beads.models.DataGridPresentationModel; DataGridPresentationModel;
import org.apache.flex.html.staticControls.beads.models.ImageModel; ImageModel;
import org.apache.flex.html.staticControls.beads.models.PanelModel; PanelModel;
+ import org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel; SingleLineBorderModel;
import org.apache.flex.html.staticControls.beads.models.TextModel; TextModel;
import org.apache.flex.html.staticControls.beads.models.TitleBarModel; TitleBarModel;
import org.apache.flex.html.staticControls.beads.models.ToggleButtonModel; ToggleButtonModel;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/ListView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/ListView.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/ListView.as
index b8c9ab9..c6d33b4 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/ListView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/ListView.as
@@ -21,6 +21,8 @@ package org.apache.flex.html.staticControls.beads
import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IBeadLayout;
import org.apache.flex.core.IBeadView;
import org.apache.flex.core.IItemRenderer;
@@ -100,8 +102,8 @@ package org.apache.flex.html.staticControls.beads
listModel.addEventListener("rollOverIndexChanged", rollOverIndexChangeHandler);
_border = new Border();
- _border.model = new SingleLineBorderModel();
- _border.addBead(new SingleLineBorderBead());
+ _border.model = new (ValuesManager.valuesImpl.getValue(value, "iBorderModel")) as IBeadModel;
+ _border.addBead(new (ValuesManager.valuesImpl.getValue(value, "iBorderBead")) as IBead);
IParent(_strand).addElement(_border);
_dataGroup = new NonVirtualDataGroup();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextAreaView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextAreaView.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextAreaView.as
index bea4cb5..5d9f915 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextAreaView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextAreaView.as
@@ -24,11 +24,12 @@ package org.apache.flex.html.staticControls.beads
import flash.text.TextFieldType;
import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IScrollBarModel;
import org.apache.flex.core.IStrand;
import org.apache.flex.core.IParent;
+ import org.apache.flex.core.ValuesManager;
import org.apache.flex.html.staticControls.beads.models.ScrollBarModel;
- import org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel;
import org.apache.flex.html.staticControls.supportClasses.Border;
import org.apache.flex.html.staticControls.supportClasses.ScrollBar;
@@ -67,8 +68,8 @@ package org.apache.flex.html.staticControls.beads
// add a border to this
_border = new Border();
- _border.model = new SingleLineBorderModel();
- _border.addBead(new SingleLineBorderBead());
+ _border.model = new (ValuesManager.valuesImpl.getValue(value, "iBorderModel")) as IBeadModel;
+ _border.addBead(new (ValuesManager.valuesImpl.getValue(value, "iBorderBead")) as IBead);
IParent(strand).addElement(border);
var vb:ScrollBar = vScrollBar;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ba9331ae/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextInputWithBorderView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextInputWithBorderView.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextInputWithBorderView.as
index 8d5e405..dbd3b81 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextInputWithBorderView.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/html/staticControls/beads/TextInputWithBorderView.as
@@ -20,9 +20,11 @@ package org.apache.flex.html.staticControls.beads
{
import flash.display.DisplayObject;
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IBeadModel;
import org.apache.flex.core.IStrand;
import org.apache.flex.core.IParent;
- import org.apache.flex.html.staticControls.beads.models.SingleLineBorderModel;
+ import org.apache.flex.core.ValuesManager;
import org.apache.flex.html.staticControls.supportClasses.Border;
import org.apache.flex.events.Event;
import org.apache.flex.events.IEventDispatcher;
@@ -47,8 +49,8 @@ package org.apache.flex.html.staticControls.beads
// add a border to this
_border = new Border();
- _border.model = new SingleLineBorderModel();
- _border.addBead(new SingleLineBorderBead());
+ _border.model = new (ValuesManager.valuesImpl.getValue(value, "iBorderModel")) as IBeadModel;
+ _border.addBead(new (ValuesManager.valuesImpl.getValue(value, "iBorderBead")) as IBead);
IParent(strand).addElement(border);
IEventDispatcher(strand).addEventListener("widthChanged", sizeChangedHandler);
[07/18] git commit: [flex-asjs] [refs/heads/develop] - add externals
for CreateJS and JQuery
Posted by ah...@apache.org.
add externals for CreateJS and JQuery
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/47e7d754
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/47e7d754
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/47e7d754
Branch: refs/heads/develop
Commit: 47e7d7548d9eba245a2a172efbfc20eace2b1b2a
Parents: 1e1163f
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:33:45 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:33:45 2013 -0800
----------------------------------------------------------------------
frameworks/js/FlexJS/src/createjs_externals.js | 19 +++++++++++++++++++
frameworks/js/FlexJS/src/jquery_externals.js | 19 +++++++++++++++++++
2 files changed, 38 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/47e7d754/frameworks/js/FlexJS/src/createjs_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/createjs_externals.js b/frameworks/js/FlexJS/src/createjs_externals.js
new file mode 100644
index 0000000..0c6b72b
--- /dev/null
+++ b/frameworks/js/FlexJS/src/createjs_externals.js
@@ -0,0 +1,19 @@
+/**
+ * Licensed 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.
+ */
+
+/**
+ * This file is used to establish external APIs so the closure-compiler
+ * can resolve references and won't minify names
+ */
+function createjs() {};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/47e7d754/frameworks/js/FlexJS/src/jquery_externals.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/jquery_externals.js b/frameworks/js/FlexJS/src/jquery_externals.js
new file mode 100644
index 0000000..2c7d0ce
--- /dev/null
+++ b/frameworks/js/FlexJS/src/jquery_externals.js
@@ -0,0 +1,19 @@
+/**
+ * Licensed 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.
+ */
+
+/**
+ * This file is used to establish external APIs so the closure-compiler
+ * can resolve references and won't minify names
+ */
+function $() {};
[06/18] git commit: [flex-asjs] [refs/heads/develop] - fix error in
createJS CheckBox
Posted by ah...@apache.org.
fix error in createJS CheckBox
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1e1163f9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1e1163f9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1e1163f9
Branch: refs/heads/develop
Commit: 1e1163f9e6175d988c5e386c079286c2ecc1ff85
Parents: fdaeaae
Author: Alex Harui <ah...@apache.org>
Authored: Fri Nov 22 09:32:35 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Nov 22 09:32:35 2013 -0800
----------------------------------------------------------------------
.../src/org/apache/flex/createjs/staticControls/CheckBox.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1e1163f9/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
index 7bb0b5d..f342f1d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
@@ -87,9 +87,9 @@ org.apache.flex.createjs.staticControls.CheckBox.prototype.createElement =
// use bind(this) to avoid loose scope
this.element.onClick = this.clickHandler.bind(this);
- p.addChild(this.element);
-
this.positioner = this.element;
+
+ return this.element;
};