Added Javadoc target to the build script.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 13 Oct 2009 02:49:23 +0000 (04:49 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 13 Oct 2009 02:49:23 +0000 (04:49 +0200)
build.xml

index 4bd0d8d..b42373a 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -14,6 +14,7 @@
       <mkdir dir="build" />
       <mkdir dir="build/bin" />
       <mkdir dir="build/test-bin" />
+      <mkdir dir="build/api" />
     </target>
 
     <target name="jsvc" depends="build-env">
         <jar destfile="build/jsvc.jar" basedir="build/bin" />
     </target>
     
+    <target name="javadoc" depends="jsvc-jar">
+      <javadoc packagenames="dolda.jsvc.*"
+              sourcepath="src"
+              destdir="build/api" />
+      <zip destfile="build/jsvc-api.zip" basedir="build/api" />
+    </target>
+
     <target name="test-war" depends="build-env, jsvc-jar">
       <taskdef name="jsvc-war" classname="dolda.jsvc.j2ee.Archive$AntTask" classpath="build/jsvc.jar" />
       <copy todir="build/test-bin/dolda/jsvc/test">