commons-xml/java/external/build-sax.xml
2001-05-20 03:12:59 +00:00

62 lines
2.1 KiB
XML

<?xml version="1.0"?>
<!-- Proposed Minimal build script for combo of:
SAX 2.0 r2 prerelease
SAX2-ext 1.0
@author David Megginson, david@megginson.com
@author shane_curcuru@lotus.com
-->
<project name="sax2-and-ext" default="jar" basedir=".">
<property name="external-module" value="SAX 2.0 r2 prerelease and SAX2-ext 1.0" />
<property name="src.dir" value="src" />
<property name="docs.dir" value="xdocs/sax" />
<property name="build.dir" value="build" />
<property name="build.classes.dir" value="${build.dir}/classes" />
<property name="build.docs.dir" value="${build.dir}/docs" />
<property name="build.javadocs.dir" value="${build.docs.dir}/javadoc" />
<property name="sax.jar.location" value="${build.dir}" />
<property name="sax.jar.name" value="commons-sax.jar" />
<property name="sax.jar" value="${sax.jar.location}/${sax.jar.name}" />
<target name="prepare"
description="Create build output directories">
<mkdir dir="${build.classes.dir}" />
<mkdir dir="${build.docs.dir}" />
<mkdir dir="${build.javadocs.dir}" />
</target>
<target name="compile" depends="prepare"
description="Compile all SAX and helper classes">
<javac srcdir="${src.dir}" destdir="${build.classes.dir}" />
</target>
<target name="jar" depends="compile"
description="Jar all SAX and helper classes">
<jar jarfile="${sax.jar}" basedir="${build.classes.dir}" />
</target>
<target name="javadoc" depends="prepare"
description="Build javadocs and copy doc over">
<javadoc packagenames="org.xml.sax.*"
sourcepath="${src.dir}"
destdir="${build.javadocs.dir}"
version="yes"
windowtitle="${external-module}"
doctitle="${external-module}"
bottom="This document is in the PUBLIC DOMAIN and comes with NO WARRANTY of any kind."
/>
<!-- Just copy existing .html files over as well -->
<copy todir="${build.docs.dir}">
<fileset dir="${docs.dir}"/>
</copy>
</target>
<target name="clean"
description="Clean the output build area">
<delete file="${sax.jar}"/>
<delete dir="${build.dir}"/>
</target>
</project>