You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/04/14 00:42:51 UTC

[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

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 <jm...@apache.org>
Authored: Thu Apr 10 07:47:15 2014 +1000
Committer: Justin Mclean <jm...@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}" />