summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--build.xml18
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 48b8b62..a89e539 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ MANIFEST.MF
*\~
build/
dist/
+doc/
nbproject/
*.class
isode/Makefile
diff --git a/build.xml b/build.xml
index 94ef93b..4114302 100644
--- a/build.xml
+++ b/build.xml
@@ -7,6 +7,7 @@
XMPP Library porting Swiften to Java.
</description>
<property name="src" location="src"/>
+ <property name="doc" location="doc"/>
<property name="src.tests" location="test"/>
<property name="test.results" location="test-results"/>
<property name="build" location="build"/>
@@ -75,8 +76,25 @@
<delete dir="${build}"/>
<delete dir="${test.results}"/>
<delete dir="${dist}"/>
+ <delete dir="${doc}"/>
</target>
+ <target name="javadoc" depends="init">
+ <!-- Note that this may stall if no network connection is available
+ to the Oracle website -->
+ <javadoc packagenames="com.isode.**.**"
+ sourcepath="${src}"
+ destdir="${doc}"
+ windowtitle="Stroke">
+ <classpath>
+ <fileset dir="${xpp-dir}" includes="xpp.jar"/>
+ </classpath>
+ <link href="http://docs.oracle.com/javase/6/docs/api/"/>
+ </javadoc>
+ </target>
+
+
+
<target name="run" description="Run the demo" depends="dist">
<java fork="true" classname="${main-class}">
<classpath>