davetron5000 / vimdoclet

Javadoc doclet that generates VIM helpfiles

This URL has Read+Write access

vimdoclet / build.xml
b25211be » David Copeland 2008-06-04 added comment to top of ant... 1 <!--
2 o -projecthelp is useful to find out what to do
3
4 o If you do not have asciidoc installed (and dont' want
5 to install it), set no.asciidoc on the command line or
6 in here.
7 -->
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 8 <project name="vimdoclet" default="jar" basedir=".">
99d03d62 » davetron5000 2007-11-19 imported 9
10 <property environment="env" />
11
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 12 <property name="src.dir" value="${basedir}/src"/>
13 <property name="java.src.dir" value="${src.dir}/java"/>
99d03d62 » davetron5000 2007-11-19 imported 14 <property name="build.dir" value="${basedir}/build"/>
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 15 <property name="jar" value="${build.dir}/${ant.project.name}.jar"/>
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 16 <property name="doc.dir" value="${basedir}/doc" />
17
18 <loadfile property="release.number" srcFile="${src.dir}/release.txt">
19 <filterchain>
20 <striplinebreaks />
21 </filterchain>
22 </loadfile>
23
24 <property name="release.name" value="vimdoclet-${release.number}" />
25 <property name="release.base.dir" value="${build.dir}/dist" />
26 <property name="release.dir.name" value="${release.name}" />
27 <property name="release.build.dir" value="${release.base.dir}/${release.dir.name}" />
636c2cde » David Copeland 2008-06-04 Put release number in sampl... 28 <property name="samples.build.dir" value="${build.dir}/vimdoclet-${release.number}-samples" />
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 29
30 <path id="javadoc.classpath">
31 <fileset dir="${build.dir}"> <include name="*.jar"/> </fileset>
32 </path>
99d03d62 » davetron5000 2007-11-19 imported 33
8643883e » davetron5000 2007-11-22 updated with samples 34 <target name="compile"
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 35 description="Compiles all code">
99d03d62 » davetron5000 2007-11-19 imported 36 <mkdir dir="${build.dir}"/>
37 <mkdir dir="${build.dir}/classes"/>
38 <javac destdir="${build.dir}/classes"
39 debug="on">
40 <src path="${java.src.dir}"/>
41 </javac>
42 </target>
43
aa88eca5 » davetron5000 2007-11-22 updated documentation 44 <target name="clean"
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 45 description="Removes all build artifacts">
99d03d62 » davetron5000 2007-11-19 imported 46 <delete dir="${build.dir}" />
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 47 <delete file="doc/index.html" />
99d03d62 » davetron5000 2007-11-19 imported 48 </target>
49
aa88eca5 » davetron5000 2007-11-22 updated documentation 50 <target name="jar" depends="compile"
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 51 description="Packages code in a jar file">
ab246cf8 » davetron5000 2007-11-23 Updated the build system to... 52 <jar destfile="${jar}"
995f6abc » davetron5000 2007-11-19 Added tasks to help create ... 53 basedir="${build.dir}/classes">
54 </jar>
55 </target>
3ff88e0b » davetron5000 2008-05-26 Added test class and target... 56
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 57 <target name="test.run" depends="jar"
58 description="Runs the doclet on the test classes"
59 >
3ff88e0b » davetron5000 2008-05-26 Added test class and target... 60 <delete dir="${build.dir}/test-output" />
61 <mkdir dir="${build.dir}/test-output" />
62 <javadoc maxmemory="512M" classpathref="javadoc.classpath">
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 63 <packageset dir="${java.src.dir}" />
3ff88e0b » davetron5000 2008-05-26 Added test class and target... 64 <doclet
65 name="com.naildrivin5.applications.vimdoclet.Main"
66 pathref="javadoc.classpath">
67 <param name="-outputDir" value="${build.dir}/test-output" />
68 </doclet>
69 </javadoc>
70 </target>
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 71
b304b02e » David Copeland 2008-09-05 Added target to publish doc... 72 <target name="doc.push" depends="doc">
a67ab460 » David Copeland 2008-09-17 Updated link to lighthouse ... 73 <scp verbose="true" sftp="true"
74 todir="davetron5000@shell.sourceforge.net:/home/groups/v/vi/vimdoclet/htdocs/" keyfile="/Users/davec/.ssh/id_dsa" passphrase="">
b304b02e » David Copeland 2008-09-05 Added target to publish doc... 75 <fileset dir="${doc.dir}" excludes="README.txt"/>
76 </scp>
77 </target>
78
79 <target name="doc" unless="no.asciidoc"
80 description="Generate HTML from asciidoc"
81 >
d5ff5d6c » David Copeland 2008-06-04 Reorganized build files, go... 82 <exec executable="asciidoc" dir="${doc.dir}">
83 <arg line="-a toc -a numbered -o index.html README.txt" />
84 </exec>
85 </target>
86
87 <target name="dist" depends="clean,jar,doc"
88 description="Creates a release tarball and zip in build/">
89 <mkdir dir="${release.build.dir}" />
90 <mkdir dir="${release.build.dir}/bin" />
91
92 <copy tofile="${release.build.dir}/bin/vimdoclet-${release.number}.jar" file="${jar}" />
93 <copy todir="${release.build.dir}/src">
94 <fileset dir="${src.dir}" excludes="release.txt" />
95 </copy>
96 <copy todir="${release.build.dir}" file="build.xml" />
97 <copy todir="${release.build.dir}" file="run.xml" />
98 <mkdir dir="${release.build.dir}/doc" />
99 <copy todir="${release.build.dir}/doc">
100 <fileset dir="${doc.dir}" />
101 </copy>
102 <tar destfile="${build.dir}/${release.name}.tar.gz" basedir="${release.base.dir}"
103 includes="${release.dir.name}/**"
104 compression="gzip" />
105 <zip destfile="${build.dir}/${release.name}.zip" basedir="${release.base.dir}"
106 includes="${release.dir.name}/**" />
107 </target>
108
94d4c812 » David Copeland 2008-06-04 Samples build now part of b... 109 <target name="dist-samples"
110 description="Creates the samples distribution">
111 <mkdir dir="${samples.build.dir}/vimdoclet-samples/samples" />
112 <copy todir="${samples.build.dir}/vimdoclet-samples/samples">
113 <fileset dir="${basedir}/sample" />
114 </copy>
115 <move
116 file="${samples.build.dir}/vimdoclet-samples/samples/README.txt"
117 tofile="${samples.build.dir}/vimdoclet-samples/README.txt" />
118 <zip destfile="${samples.build.dir}.zip" basedir="${samples.build.dir}" />
119 </target>
120
99d03d62 » davetron5000 2007-11-19 imported 121 </project>