curcuru f77419e989 New build system for whole xml-commons project
Top-level xml-commons/build.xml creates distro out of all sub-sub-projects
README.html updated with forrest 1.5 look and more info
which.xml and external/build.xml simplified with minor updates; outputs are still the same


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225943 13f79535-47bb-0310-9956-ffa450edef68
2002-01-09 20:01:23 +00:00

108 lines
4.1 KiB
XML

<?xml version="1.0"?>
<!--
@author David Megginson, david@megginson.com
@author shane_curcuru@lotus.com
@author Davanum Srinivas, dims@yaoo.com
-->
<project name="xml-commons-external" default="jar" >
<!-- Name and version information -->
<property name="name.external" value="xml-commons-external"/>
<property name="impl.name" value="XmlCommons"/>
<property name="impl.version" value="${version}"/>
<!-- Location of the system's temporary directory; all output sent here -->
<property name="tmp.dir" value="." />
<!-- Build directories -->
<property name="build.dir" value="${tmp.dir}/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="external.javadoc.title" value="JAXP 1.1, DOM2, SAX2, SAX2-ext 1.0" />
<!-- Source constants and directories -->
<property name="src.dir" value="src" />
<property name="docs.dir" value="xdocs" />
<property name="api.jar.location" value="${build.dir}" />
<property name="api.jar.name" value="xml-apis.jar" />
<property name="api.jar" value="${api.jar.location}/${api.jar.name}" />
<target name="all" depends="jar,javadoc"
description="Jar external classes and create javadoc">
</target>
<target name="prepare"
description="Create build output directories">
<echo message="Building ${name.external} (version: ${impl.version}) Buildfile: $Revision$"/>
<mkdir dir="${build.classes.dir}" />
<mkdir dir="${build.docs.dir}" />
<mkdir dir="${build.javadocs.dir}" />
<filter token="impl.version" value="${impl.version}"/>
<filter token="impl.name" value="${impl.name}"/>
<copy file="${src.dir}/org/apache/xmlcommons/Version.src"
tofile="${src.dir}/org/apache/xmlcommons/Version.java"
filtering="true" preservelastmodified="true" />
<copy todir="${build.dir}" file="${src.dir}/manifest.commons" filtering="true"/>
</target>
<target name="compile" depends="prepare"
description="Compile all classes">
<javac srcdir="${src.dir}" destdir="${build.classes.dir}" />
</target>
<target name="jar" depends="compile"
description="Jar all classes">
<echo message="Jarring ${api.jar} from ${build.classes.dir}" />
<jar jarfile="${api.jar}"
basedir="${build.classes.dir}"
manifest="${build.dir}/manifest.commons" />
</target>
<target name="javadoc" depends="prepare"
description="Build javadocs and copy doc over">
<javadoc packagenames="org.xml.sax.*,org.w3c.dom.*,javax.xml.parsers.*,javax.xml.transform.*"
sourcepath="${src.dir}"
destdir="${build.javadocs.dir}"
version="yes"
windowtitle="${external.javadoc.title}"
doctitle="${external.javadoc.title}"
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="exportsrc" depends="prepare"
description="Create a simple distribution of sources">
<!-- Note: this not a complete public distro layout yet! -sc -->
<patternset id="external-srcs" >
<!-- Relative to external/src, which is ${src.dir} -->
<include name="org/"/>
<include name="javax/"/>
</patternset>
<tar tarfile="${build.dir}/${name.external}-${impl.version}-src.tar" >
<tarfileset dir="${src.dir}">
<patternset refid="external-srcs"/>
</tarfileset>
<tarfileset dir="${build.dir}">
<include name="manifest.commons"/>
</tarfileset>
</tar>
<gzip src="${build.dir}/${name.external}-${impl.version}-src.tar" zipfile="${build.dir}/${name.external}-${impl.version}-src.tar.gz"/>
<delete file="${build.dir}/${name.external}-${impl.version}-src.tar" />
</target>
<target name="clean"
description="Clean the output build area">
<delete file="${api.jar}"/>
<delete dir="${build.dir}"/>
<delete file="${src.dir}/org/apache/xmlcommons/Version.java"/>
</target>
</project>