flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [60/64] [abbrv] git commit: [flex-flexunit] [refs/heads/master] - Removed dependancy on PMD (while useful not every one has it and it's in the process of being donated) and added ASDocs target
Date Sun, 13 Apr 2014 22:42:51 GMT
Removed dependancy on PMD (while useful not every one has it and it's in the process of being
donated) and added ASDocs target


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

Branch: refs/heads/master
Commit: ac33050049c17bf03dbc5f0311c6c4ced0e6f168
Parents: 09a1a49
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu Apr 10 07:47:15 2014 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu Apr 10 07:47:15 2014 +1000

----------------------------------------------------------------------
 FlexUnit4/build.xml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/ac330500/FlexUnit4/build.xml
----------------------------------------------------------------------
diff --git a/FlexUnit4/build.xml b/FlexUnit4/build.xml
index d5d8d4d..c5dc53e 100644
--- a/FlexUnit4/build.xml
+++ b/FlexUnit4/build.xml
@@ -161,6 +161,22 @@
       </java>
    </target>
    
+   <target name="asdocs" description="AS docs">
+      <!-- Pull in class file list to use with asdoc -->
+      <property file="${bin.loc}/flexLib.properties" />
+
+      <!-- Generate asdocs -->
+      <java jar="${FLEX_HOME}/lib/asdoc.jar" fork="true" failonerror="true">
+         <jvmarg value="-Xmx256M" />
+         <arg line="+flexlib '${FLEX_HOME}/frameworks'" />
+         <arg line="-doc-classes ${src.class-list}" />
+         <arg line="-source-path+='${src.loc}'" />
+         <arg line="-output '${doc.loc}'" />
+         <arg line="-library-path+='${lib.loc}'" />
+         <arg line="-define=CONFIG::useFlexClasses,true" />
+      </java>
+   </target>
+	
    <target name="pmdReport" if="build.pmd">
       <taskdef name="pmd" classname="com.adobe.ac.pmd.ant.FlexPmdAntTask" />
       <taskdef name="cpd" classname="com.adobe.ac.cpd.ant.FlexCpdAntTask" />
@@ -179,7 +195,7 @@
       <metrics sourcedirectory="${src.loc}" outputfile="${report.loc}/javancss.xml" />
    </target>
 
-   <target name="package" depends="package-default,package-instrument,report" />
+   <target name="package" depends="package-default,package-instrument,asdocs" />
 
    <target name="package-default" depends="compile">
       <copy file="${bin.loc}/${build.finalName.as3}.${build.packaging}" todir="${dist.loc}"
/>


Mime
View raw message