Updated Branches:
  refs/heads/develop 59ea775d5 -> a35595b73

Adding asdoc generation for flex-asjs projects (FlexJSUI and FlexJSJX).


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

Branch: refs/heads/develop
Commit: a35595b73daa03e25f5769737bbba818cf7850e1
Parents: 59ea775
Author: Peter Ent <[email protected]>
Authored: Fri Jan 24 10:15:11 2014 -0500
Committer: Peter Ent <[email protected]>
Committed: Fri Jan 24 10:15:11 2014 -0500

----------------------------------------------------------------------
 asdoc/build.xml | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 build.xml       |  7 ++--
 2 files changed, 98 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a35595b7/asdoc/build.xml
----------------------------------------------------------------------
diff --git a/asdoc/build.xml b/asdoc/build.xml
new file mode 100644
index 0000000..cae0f67
--- /dev/null
+++ b/asdoc/build.xml
@@ -0,0 +1,95 @@
+<?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="ASDocs" default="main" basedir=".">
+    <property environment="env"/>
+       <property name="FLEX_HOME" value="${basedir}/../../flex-sdk"/>
+       <property name="lenient" value="true"/>
+       <property name="flexlib" location="${FLEX_HOME}/frameworks"/>
+
+    <property name="doc_output" location="${basedir}/../asdoc-output"   />
+    <property name="project_home" 
location="${basedir}/../frameworks/as/projects"/>
+
+    <property file="${FLEX_HOME}/env.properties"/>
+       <property file="${FLEX_HOME}/build.properties"/>
+       
+       <echo message="FLEX_HOME = ${FLEX_HOME}" />
+       <echo message="flexlib = ${flexlib}" />
+       <echo message="doc_output = ${doc_output}" />
+    <echo message="compiler.source-path = ${project_home}/FlexJSUI/src" />
+    <echo message="compiler.source-path = ${project_home}/FlexJSJX/src" />
+
+       <target name="main" depends="clean,doc" description="Clean build of all 
ASDocs"/>
+
+       <target name="clean" description="Cleans all ASDocs">
+               <delete dir="${doc_output}"/>
+       </target>
+
+       <target name="doc">
+
+           <condition property="asdoc.jvm.args" value="-Xmx512m">
+               <os family="windows"/>
+           </condition>
+
+           <condition property="asdoc.jvm.args" value="-Xmx1024m">
+               <os family="mac"/>
+           </condition>
+
+           <condition property="asdoc.jvm.args" value="-Xmx512m">
+               <os family="unix"/>
+           </condition>
+
+        <path id="flexTasks.path">
+            <fileset dir="${FLEX_HOME}">
+                <include name="lib/flexTasks.jar" />
+                <include name="ant/lib/flexTasks.jar" />
+            </fileset>
+        </path>
+        <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/>
+        
+               <!-- Call asdoc to generate dita xml files -->
+               <asdoc output="${doc_output}" lenient="true" failonerror="true" 
warnings="false" strict="false" locale="en_US" fork="true"
+               window-title="Apache FlexJS API Reference"
+               main-title="${release} API Reference "
+               footer="${manifest.Implementation-Vendor}" >
+               
+                       <!-- source path for asdoc -->
+                       <compiler.source-path 
path-element="${project_home}/FlexJSUI/src"/>
+                       <compiler.source-path 
path-element="${project_home}/FlexJSJX/src"/>
+                                               
+                       <!-- namespaces to include in asdoc -->
+                       <doc-namespaces 
uri="library://ns.apache.org/flexjs/basic"/>
+                       <doc-namespaces 
uri="library://ns.apache.org/flexjs/mx"/>
+                       
+                       <!-- namespace declaration for asdoc -->
+            <namespace uri="library://ns.apache.org/flexjs/basic" 
manifest="${project_home}/FlexJSUI/basic-manifest.xml" />
+            <namespace uri="library://ns.apache.org/flexjs/basic" 
manifest="${project_home}/FlexJSJX/basic-manifest.xml" />
+            <namespace uri="library://ns.apache.org/flexjs/mx" 
manifest="${project_home}/FlexJSUI/mx-manifest.xml" />
+
+                       <library-path/>
+
+                       <jvmarg line="${asdoc.jvm.args}"/>
+
+                       <define name="CONFIG::debug" value="false"/>
+                       <define name="CONFIG::release" value="true"/>
+            <define name="CONFIG::LOGGING" value="false"/>
+                       <define name="CONFIG::performanceInstrumentation" 
value="false"/>        
+               </asdoc>
+       </target>
+</project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/a35595b7/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 356ce7b..05b7716 100644
--- a/build.xml
+++ b/build.xml
@@ -335,8 +335,8 @@
         <delete dir="${basedir}/out" failonerror="false" 
includeEmptyDirs="true"/>
         <delete dir="${basedir}/temp" failonerror="false" 
includeEmptyDirs="true"/>
         <delete dir="${basedir}/tempDoc" failonerror="false" 
includeEmptyDirs="true"/>
-        <!--
         <ant dir="${basedir}/asdoc" target="clean" />
+        <!--
         <ant dir="${basedir}/ide/flashbuilder" target="clean" />
         <ant dir="${basedir}/mustella" target="clean"/>
         -->
@@ -489,13 +489,12 @@
         <!-- frameworks/js -->
         <antcall target="stage-framework-js"/>
 
-        <!-- asdoc
+        <!-- asdoc -->
         <copy todir="${basedir}/temp/asdoc" includeEmptyDirs="false">
             <fileset dir="${basedir}/asdoc">
                <exclude name="test/**" />
             </fileset>
-        </copy> 
-        --> 
+        </copy>
 
         <copy todir="${basedir}/temp/ide">
             <fileset dir="${basedir}/ide" >

Reply via email to