Revision: 15180
          http://gate.svn.sourceforge.net/gate/?rev=15180&view=rev
Author:   markagreenwood
Date:     2012-01-22 13:09:29 +0000 (Sun, 22 Jan 2012)
Log Message:
-----------
build the javadocs into the creole.zip files

Modified Paths:
--------------
    plugins/trunk/obsolete/build.xml
    plugins/trunk/obsolete/rasp/build.xml

Modified: plugins/trunk/obsolete/build.xml
===================================================================
--- plugins/trunk/obsolete/build.xml    2012-01-22 13:02:21 UTC (rev 15179)
+++ plugins/trunk/obsolete/build.xml    2012-01-22 13:09:29 UTC (rev 15180)
@@ -33,6 +33,23 @@
     </for>
   </target>
 
+  <target name="javadoc">
+    <for param="plugin">
+      <path>
+        <dirset refid="plugins.to.build" />
+      </path>
+      <sequential>
+        <if>
+          <available file="@{plugin}/build.xml" />     
+          <then>
+            <echo>Building Javadoc for @{plugin}</echo>                
+            <ant dir="@{plugin}" inheritAll="false" target="javadoc" />
+          </then>
+        </if>
+      </sequential>
+    </for>
+  </target>
+
   <target name="test" depends="build">
     <for param="plugin">
       <path>
@@ -84,7 +101,7 @@
     </for>
   </target>
   
-  <target name="distro" depends="build, distro.prepare">
+  <target name="distro" depends="build, javadoc, distro.prepare">
     <echo file="site.xml" message="&lt;UpdateSite&gt;" append="false" />
     <for param="plugin">
       <path>

Modified: plugins/trunk/obsolete/rasp/build.xml
===================================================================
--- plugins/trunk/obsolete/rasp/build.xml       2012-01-22 13:02:21 UTC (rev 
15179)
+++ plugins/trunk/obsolete/rasp/build.xml       2012-01-22 13:09:29 UTC (rev 
15180)
@@ -8,6 +8,8 @@
   <property name="src.dir" location="src" />
   <property name="classes.dir" location="classes" />
   <property name="jar.location" location="rasp.jar" />
+  <property name="doc.dir" location="doc" />
+  <property name="javadoc.dir" location="${doc.dir}/javadoc" />
 
   <!-- Path to compile - includes gate.jar and GATE/lib/*.jar -->
   <path id="compile.classpath">
@@ -50,6 +52,25 @@
     <delete file="${jar.location}" />
   </target>
 
+  <!-- Build JavaDoc documentation -->
+  <target name="doc.prepare">
+    <mkdir dir="${javadoc.dir}" />
+  </target>
+
+  <target name="javadoc" depends="doc.prepare">
+    <javadoc destdir="${javadoc.dir}" packagenames="*"
+             classpathref="compile.classpath"
+             encoding="UTF-8"
+             windowtitle="${plugin.name} JavaDoc"
+             source="1.5">
+      <sourcepath>
+        <pathelement location="${src.dir}" />
+      </sourcepath>
+      <link href="http://java.sun.com/j2se/1.5.0/docs/api/"; />
+      <link href="http://gate.ac.uk/gate/doc/javadoc/"; />
+    </javadoc>
+  </target>
+
   <!-- Targets used by the main GATE build file:
          build: build the plugin - just calls "jar" target
          test : run the unit tests - there aren't any

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to