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 2016/12/12 07:36:32 UTC

[1/3] git commit: [flex-asjs] [refs/heads/develop] - build for asdoc

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 7ff789476 -> e28de643d


build for asdoc


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

Branch: refs/heads/develop
Commit: e28de643dfe1ac8d61c34a08c4dff86c7e02b4a0
Parents: 05b0e23
Author: Alex Harui <ah...@apache.org>
Authored: Sun Dec 11 23:36:17 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Dec 11 23:36:30 2016 -0800

----------------------------------------------------------------------
 examples/flexjs/ASDoc/build.xml                 |  47 +-
 .../ASDoc/src/main/config/asdoc-config.xml      | 473 +++++++++++++++++++
 2 files changed, 511 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e28de643/examples/flexjs/ASDoc/build.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/build.xml b/examples/flexjs/ASDoc/build.xml
index 3a1336d..e6e8fd4 100644
--- a/examples/flexjs/ASDoc/build.xml
+++ b/examples/flexjs/ASDoc/build.xml
@@ -31,14 +31,11 @@
 
     <include file="${basedir}/../../build_example.xml" />
     
-    <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}">
-        <copy todir="${basedir}/bin/js-debug">
-            <fileset dir="${basedir}/src/main/resources">
-                <include name="**/*.png" />
-                <include name="**/*.jpg" />
-                <include name="**/*.json" />
-            </fileset>
-        </copy>
+    <target name="main" depends="build_example.compile,build_example.compilejs" description="Clean build of ${example}">
+        <available file="${basedir}/bin-debug/classes.json"
+        type="file"
+        property="json.exists"/>
+        <antcall target="json" />
     </target>
     
     <target name="clean">
@@ -48,6 +45,38 @@
         <delete dir="${basedir}/target" failonerror="false" />
     </target>
 
-    
+    <target name="json" unless="json.exists" >
+        <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
+        <java jar="${FALCONJX_HOME}/lib/asdoc.jar" resultProperty="errorCode"
+            fork="true">
+            <jvmarg line="${mxmlc.jvm.args}"/>
+            <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
+            <arg value="+flexlib=${FLEXJS_HOME}/frameworks" />
+            <arg value="-external-library-path=${env.AIR_HOME}/frameworks/libs/air/airglobal.swc" />
+            <arg value="-external-library-path+=${FLEXJS_HOME}/js/libs/google_maps.swc" />
+            <arg value="+frameworks_dir=${FLEXJS_HOME}/frameworks" />
+            <arg value="-load-config=${basedir}/src/main/config/asdoc-config.xml" />
+            <arg value="-debug=true" />
+            <arg value="-output=${basedir}/bin-debug" />
+            <arg value="-window-title=Apache FlexJS API Reference" />
+            <arg value="-main-title=Apache FlexJS 0.8.0 API Reference " />
+            <arg value="-footer=The Apache Software Foundation" />
+            <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}" />
+        </java>
+        <copy todir="${basedir}/bin/js-debug">
+            <fileset dir="${basedir}/bin-debug">
+                <include name="**/*.json" />
+            </fileset>
+        </copy>
+        <copy todir="${basedir}/bin/js-release">
+            <fileset dir="${basedir}/bin-debug">
+                <include name="**/*.json" />
+            </fileset>
+        </copy>
+
+    </target>
     
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e28de643/examples/flexjs/ASDoc/src/main/config/asdoc-config.xml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/src/main/config/asdoc-config.xml b/examples/flexjs/ASDoc/src/main/config/asdoc-config.xml
new file mode 100644
index 0000000..9c856e6
--- /dev/null
+++ b/examples/flexjs/ASDoc/src/main/config/asdoc-config.xml
@@ -0,0 +1,473 @@
+<?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>
+
+    <define><name>COMPILE::SWF</name><value>true</value></define>
+    <define><name>COMPILE::JS</name><value>false</value></define>
+    <define><name>CONFIG::debug</name><value>false</value></define>
+    <define><name>CONFIG::release</name><value>true</value></define>
+    <define><name>CONFIG::LOGGING</name><value>false</value></define>
+    <define><name>CONFIG::performanceInstrumentation</name><value>false</value></define>
+
+      <!-- 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>
+      -->
+      <source-path>
+          <path-element>${frameworks_dir}/projects/Binding/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Charts/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Collections/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Core/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/CreateJS/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/DragDrop/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Effects/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Formatters/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Graphics/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/HTML/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/HTML5/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/JQuery/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Language/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Mobile/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Network/src/main/flex</path-element>
+          <path-element>${frameworks_dir}/projects/Reflection/src/main/flex</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>
+      -->
+
+      <!-- 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>{playerglobalHome}/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
+      </library-path>
+
+        <!-- namespace declaration for asdoc -->
+        <namespaces>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Binding/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Charts/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Collections/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Core/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/createjs</uri>
+                <manifest>${frameworks_dir}/projects/CreateJS/src/main/resources/createjs-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/DragDrop/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Effects/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Formatters/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/google</uri>
+                <manifest>${frameworks_dir}/projects/GoogleMaps/src/main/resources/google-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Graphics/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/HTML/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/html5</uri>
+                <manifest>${frameworks_dir}/projects/HTML5/src/main/resources/html5-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/jquery</uri>
+                <manifest>${frameworks_dir}/projects/JQuery/src/main/resources/jquery-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Mobile/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <manifest>${frameworks_dir}/projects/Network/src/main/resources/basic-manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.apache.org/flexjs/svg</uri>
+                <manifest>${frameworks_dir}/projects/HTML/src/main/resources/svg-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>
+   
+   <exclude-classes>
+       <class>org.apache.flex.utils.Language</class>
+       <class>org.apache.flex.utils.URLUtils</class>
+       <class>org.apache.flex.core.IFlexJSElement</class>
+       <class>org.apache.flex.core.WrappedHTMLElement</class>
+       <class>org.apache.flex.events.BrowserEvent</class>
+       <class>org.apache.flex.html.beads.CSSTextButtonView</class>
+       <class>org.apache.flex.maps.google.beads.MapView_original</class>
+    </exclude-classes>
+   
+   <exclude-sources>
+       <path-element>${frameworks_dir}/projects/Language/src/main/flex/org/apache/flex/utils/Language.as</path-element>
+       <path-element>${frameworks_dir}/projects/Core/src/main/flex/org/apache/flex/utils/URLUtils.as</path-element>
+       <path-element>${frameworks_dir}/projects/Core/src/main/flex/org/apache/flex/core/WrappedHTMLElement.as</path-element>
+       <path-element>${frameworks_dir}/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as</path-element>
+       <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex/org/apache/flex/maps/google/beads/MapView_original.as</path-element>
+    </exclude-sources>
+   
+   <!-- source path for asdoc -->
+   
+            <!-- namespaces to include in asdoc -->
+            <doc-namespaces>
+                <uri>library://ns.apache.org/flexjs/basic</uri>
+                <uri>library://ns.apache.org/flexjs/createjs</uri>
+                <uri>library://ns.apache.org/flexjs/google</uri>
+                <uri>library://ns.apache.org/flexjs/html5</uri>
+                <uri>library://ns.apache.org/flexjs/jquery</uri>
+            </doc-namespaces>
+            
+            <!-- classes to include in asdoc -->
+            <doc-sources>
+                <path-element>${frameworks_dir}/projects/Binding/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Charts/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Collections/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Core/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/CreateJS/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/DragDrop/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Effects/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Formatters/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex/org</path-element>
+            <path-element>${frameworks_dir}/projects/Graphics/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/HTML/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/HTML5/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/JQuery/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Mobile/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Network/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/Reflection/src/main/flex</path-element>
+            <path-element>${frameworks_dir}/projects/GoogleMaps/src/main/flex/google/maps/LatLng.as</path-element>
+            </doc-sources>
+            
+</flex-config>


[2/3] git commit: [flex-asjs] [refs/heads/develop] - more fixes for asdoc app

Posted by ah...@apache.org.
more fixes for asdoc app


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

Branch: refs/heads/develop
Commit: 05b0e230a0293a65a2a9fff0bd459ccc21f87b35
Parents: 2143ae2
Author: Alex Harui <ah...@apache.org>
Authored: Sun Dec 11 23:34:43 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Dec 11 23:36:30 2016 -0800

----------------------------------------------------------------------
 .../ASDoc/src/main/flex/ASDocMainView.mxml      |  2 +-
 .../ASDoc/src/main/flex/models/ASDocModel.as    | 69 +++++++++++++++++++-
 2 files changed, 68 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/05b0e230/examples/flexjs/ASDoc/src/main/flex/ASDocMainView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/src/main/flex/ASDocMainView.mxml b/examples/flexjs/ASDoc/src/main/flex/ASDocMainView.mxml
index 26c6f18..25d4884 100644
--- a/examples/flexjs/ASDoc/src/main/flex/ASDocMainView.mxml
+++ b/examples/flexjs/ASDoc/src/main/flex/ASDocMainView.mxml
@@ -73,7 +73,7 @@ limitations under the License.
             <js:Label id="packageName"  text="{ASDocModel(applicationModel).currentPackage}" width="100%"/>
             <js:Label id="baseName" text="{ASDocModel(applicationModel).currentClass}" width="100%" style="fontSize:20"/>
             <js:Label id="inheritance" text="{ASDocModel(applicationModel).inheritance}" width="100%"/>
-            <js:Label id="attributes" text="{ASDocModel(applicationModel).attributes}" width="100%"/>
+            <js:MultilineLabel id="attributes" text="{ASDocModel(applicationModel).attributes}" width="100%"/>
             <js:MultilineLabel id="description" text="{ASDocModel(applicationModel).description}" width="100%"/>
             <js:Label text="Public Properties" />
             <js:List id="publicPropertyList" dataProvider="{ASDocModel(applicationModel).publicProperties}"

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/05b0e230/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as b/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
index 41c8400..20a9345 100644
--- a/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
+++ b/examples/flexjs/ASDoc/src/main/flex/models/ASDocModel.as
@@ -148,6 +148,10 @@ package models
         
         private var _currentClassData:Object;
         
+        private var _baseClassList:Array;
+        
+        private var _attributesMap:Object;
+        
         private function completeClassHandler(event:Event):void
         {
             app.service.removeEventListener("complete", completeClassHandler);
@@ -158,7 +162,13 @@ package models
                 _publicProperties = [];
                 _publicMethods = [];
                 _constructorList = [];
+                _baseClassList = [];
+                _inheritance = null;
+                _attributesMap = {};
+                _attributes = null;
             }
+            else
+                _baseClassList.push(data.qname);
             for each (var m:Object in data.members)
             {
                 m.shortDescription = makeShortDescription(m.description);
@@ -168,7 +178,7 @@ package models
                     {
                         _constructorList.push(m);
                     }
-                    else
+                    else if (m.qname != data.qname)
                         _publicMethods.push(m);
                 }
                 else
@@ -177,6 +187,14 @@ package models
                 }
                     
             }
+            for each (m in data.tags)
+            {
+                if (!_attributesMap[m.tagName])
+                {
+                    _attributesMap[m.tagName] = m.values;
+                }
+            }
+
             if (data.type == "class" && data.baseClassname && data.baseClassname.indexOf("flash.") != 0)
             {
                 app.service.addEventListener("complete", completeClassHandler);
@@ -224,7 +242,13 @@ package models
                 _publicProperties = [];
                 _publicMethods = [];
                 _constructorList = [];
+                _baseClassList = [];
+                _inheritance = null;
+                _attributesMap = {};
+                _attributes = null;
             }
+            else
+                _baseClassList.push(data.qname);
             for each (var m:Object in data.members)
             {
                 m.shortDescription = makeShortDescription(m.description);
@@ -243,6 +267,13 @@ package models
                 }
                 
             }
+            for each (m in data.tags)
+            {
+                if (!_attributesMap[m.tagName])
+                {
+                    _attributesMap[m.tagName] = m.values;
+                }
+            }
             if (data.baseInterfaceNames)
                 extensions = extensions.concat(data.baseInterfaceNames);
 
@@ -289,12 +320,27 @@ package models
         {
             return _currentClassData.description;
         }
-
+        
         private var _inheritance:String;
         
         [Bindable("currentDataChanged")]
         public function get inheritance():String
         {
+            if (!_inheritance)
+            {
+                var s:String = "extends ";
+                if (_baseClassList.length == 0)
+                    s += "Object";
+                else
+                {
+                    s += _baseClassList.shift();
+                    for each (var p:String in _baseClassList)
+                    {
+                        s += "-> " + p;
+                    }
+                }
+                _inheritance = s;
+            }
             return _inheritance;
         }
        
@@ -303,6 +349,25 @@ package models
         [Bindable("currentDataChanged")]
         public function get attributes():String
         {
+            if (!_attributes)
+            {
+                var s:String = "";
+                for (var p:String in _attributesMap)
+                {
+                    var o:Array = _attributesMap[p];
+                    s += p + ": ";
+                    var firstOne:Boolean = true;
+                    for each (var q:String in o)
+                    {
+                        if (!firstOne)
+                            s += ", ";
+                        firstOne = false;
+                        s += q;
+                    }
+                    s += "\n";
+                }
+                _attributes = s;
+            }
             return _attributes;
         }
 	}


[3/3] git commit: [flex-asjs] [refs/heads/develop] - only copy resource folder if it exists

Posted by ah...@apache.org.
only copy resource folder if it exists


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

Branch: refs/heads/develop
Commit: 2143ae28ec3bbf4a9f8d43c87c954f2fa9b04e66
Parents: 7ff7894
Author: Alex Harui <ah...@apache.org>
Authored: Sun Dec 11 23:33:47 2016 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Sun Dec 11 23:36:30 2016 -0800

----------------------------------------------------------------------
 examples/build_example.xml | 30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2143ae28/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/examples/build_example.xml b/examples/build_example.xml
index 820209d..79a7e64 100644
--- a/examples/build_example.xml
+++ b/examples/build_example.xml
@@ -134,13 +134,7 @@
             versionrevision="0" 
             output="${basedir}/bin-debug"/> 
  
-        <copy todir="${basedir}/bin-debug">
-            <fileset dir="${basedir}/src/main/resources">
-                <include name="**/*.png" />
-                <include name="**/*.jpg" />
-                <include name="**/*.json" />
-            </fileset>
-        </copy>
+        <antcall target="build_example.copy-resources" />
         <copy todir="${basedir}/bin-debug/fonts">
             <fileset dir="${FLEX_HOME}/frameworks/fonts">
                 <include name="**/*.swf" />
@@ -177,12 +171,7 @@
             <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
         </mxmlc>
         
-        <copy todir="${basedir}/bin-debug">
-            <fileset dir="${basedir}/src/main/resources">
-                <include name="**/*.png" />
-                <include name="**/*.jpg" />
-            </fileset>
-        </copy>
+        <antcall target="build_example.copy-resources" />
         <copy todir="${basedir}/bin-debug">
             <fileset dir="${basedir}">
                 <include name="*-app.xml" />
@@ -457,4 +446,19 @@
         </sequential>
     </macrodef>
     
+    <target name="check-resources" >
+        <available file="${basedir}/src/main/resources"
+        type="dir"
+        property="has-resources"/>
+    </target>
+    
+    <target name="copy-resources" depends="check-resources" if="has-resources">
+        <copy todir="${basedir}/bin-debug">
+            <fileset dir="${basedir}/src/main/resources">
+                <include name="**/*.png" />
+                <include name="**/*.jpg" />
+                <include name="**/*.json" />
+            </fileset>
+        </copy>
+    </target>
 </project>