You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by bb...@apache.org on 2006/11/10 21:50:19 UTC
svn commit: r473518 - /incubator/xap/trunk/build.xml
Author: bbuffone
Date: Fri Nov 10 13:50:18 2006
New Revision: 473518
URL: http://svn.apache.org/viewvc?view=rev&rev=473518
Log:
added a xap docs task to create docs for the web site.
Modified:
incubator/xap/trunk/build.xml
Modified: incubator/xap/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/build.xml?view=diff&rev=473518&r1=473517&r2=473518
==============================================================================
--- incubator/xap/trunk/build.xml (original)
+++ incubator/xap/trunk/build.xml Fri Nov 10 13:50:18 2006
@@ -124,6 +124,35 @@
</exec>
</target>
+ <!-- Builds XAP source code jsdoc. These docs will be used on the XAP website. -->
+ <target name="doc-site" description="Builds JSDoc">
+ <echo message="Building docs"/>
+ <delete dir="doc/xap-site"/>
+
+ <!-- replace the main.tmpl in the jsdoc.pl to main-site.tmpl -->
+ <replace file="JSDoc-1.9.9.2/jsdoc.pl"
+ token="main.tmpl" value="main-site.tmpl"/>
+
+ <exec executable="perl">
+ <arg value="JSDoc-1.9.9.2/jsdoc.pl" />
+ <arg value="-r" />
+ <arg value="--package-naming" />
+ <arg value="--no-lexical-privates" />
+ <arg value="--project-name" />
+ <arg value="XAP source" />
+ <arg value="--logo" />
+ <arg value="doc/header_logo.gif" />
+ <arg value="--directory" />
+ <arg value="doc/xap-site" />
+ <arg value="src/xap" />
+ </exec>
+
+ <!-- Change back the main.tmpl in the jsdoc.pl -->
+ <replace file="JSDoc-1.9.9.2/jsdoc.pl"
+ token="main-site.tmpl" value="main.tmpl"/>
+
+ </target>
+
<!-- Runs all JSUnit tests. The standalone_test is defined in the imported -->
<!-- ./jsunit/build.xml that came with jsunit. -->
<target name="tests" description="Runs JSUnit tests">