public
Description: Javadoc doclet that generates VIM helpfiles
Homepage: http://vimdoclet.sf.net
Clone URL: git://github.com/davetron5000/vimdoclet.git
vimdoclet / run.xml
100644 36 lines (31 sloc) 1.683 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<project name="vimdoclet-run" default="run" basedir=".">
 
    <property file="run.properties"/>
    <property name="vimdoclet.lineLength" value="80" />
    <path id="javadoc.classpath">
        <fileset dir="build"> <include name="vimdoclet.jar"/> </fileset>
    </path>
 
    <target name="run" depends="check.run.properties"
        description="Runs the doclet on the java source. See README">
        <delete dir="${vimdoclet.outputDir}" />
        <mkdir dir="${vimdoclet.outputDir}" />
        <javadoc maxmemory="512M" classpathref="javadoc.classpath">
            <packageset dir="${vimdoclet.source.root}" excludes="com/**, sun/**, sunw/**, org/**" />
            <doclet
                name="com.naildrivin5.applications.vimdoclet.Main"
                pathref="javadoc.classpath">
                <param name="-outputDir" value="${vimdoclet.outputDir}" />
                <param name="-lineLength" value="${vimdoclet.lineLength}" />
            </doclet>
        </javadoc>
        <delete>
            <fileset dir="${vimdoclet.outputDir}" includes="java.awt.List.txt, java.awt.List.*.txt" />
        </delete>
    </target>
 
    <target name="check.run.properties" depends="check.run.properties.source.root, check.run.properties.outputDir" />
    <target name="check.run.properties.source.root" unless="vimdoclet.source.root">
        <fail message="You must set vimdoclet.source.root to the root of the sources you wish to process" />
    </target>
    <target name="check.run.properties.outputDir" unless="vimdoclet.outputDir">
        <fail message="You must set vimdoclet.outputDir to the directory where you want the files to go" />
    </target>
    
</project>