Improved build.xml
[vimdoclet.git] / run.xml
blob6d4fde1f53abe123876a7f0652133aeae7cbcd90
1 <project name="vimdoclet-run" default="run" basedir=".">
3     <path id="javadoc.classpath">
4         <fileset dir="bin"> <include name="*.jar"/> </fileset>
5         <fileset dir="lib"> <include name="*.jar"/> </fileset>
6     </path>
8     <target name="run" depends="check.run.properties"
9         description="Runs the doclet on the java source.  See README">
10         <delete dir="${vimdoclet.outputDir}" />
11         <mkdir dir="${vimdoclet.outputDir}" />
12         <javadoc maxmemory="512M" classpathref="javadoc.classpath">
13             <packageset dir="${vimdoclet.source.root}" excludes="com/**, sun/**, sunw/**, org/ietf/**, org/jcp/**, org/relaxng/**" />
14             <doclet 
15                 name="com.naildrivin5.applications.vimdoclet.Main"
16                 pathref="javadoc.classpath">
17                 <param name="-outputDir" value="${vimdoclet.outputDir}" />
18             </doclet>
19         </javadoc>
20         <delete>
21             <fileset dir="${vimdoclet.outputDir}" includes="java.awt.List.txt, java.awt.List.*.txt" />
22         </delete>
23     </target>
25     <target name="check.run.properties" depends="check.run.properties.source.root, check.run.properties.outputDir" />
26     <target name="check.run.properties.source.root" unless="vimdoclet.source.root">
27         <fail message="You must set vimdoclet.source.root to the root of the sources you wish to process" />
28     </target>
29     <target name="check.run.properties.outputDir" unless="vimdoclet.outputDir">
30         <fail message="You must set vimdoclet.outputDir to the directory where you want the files to go" />
31     </target>
32     
33 </project>