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
This commit is contained in:
curcuru
2002-01-09 20:01:23 +00:00
parent 1d6cda7c46
commit f77419e989
4 changed files with 283 additions and 107 deletions

View File

@@ -4,28 +4,37 @@
@author shane_curcuru@lotus.com
@author Davanum Srinivas, dims@yaoo.com
-->
<project name="xml-commons" default="jar" basedir=".">
<property name="name" value="xml-commons"/>
<property name="version" value="1.0"/>
<property name="project.name" value="${name}-${version}"/>
<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}"/>
<property name="external-module" value="JAXP 1.1, DOM2, SAX2, SAX2-ext 1.0" />
<property name="src.dir" value="src" />
<property name="docs.dir" value="xdocs" />
<property name="build.dir" value="build" />
<!-- 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}" />
@@ -44,6 +53,7 @@
<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" />
@@ -55,8 +65,8 @@
sourcepath="${src.dir}"
destdir="${build.javadocs.dir}"
version="yes"
windowtitle="${external-module}"
doctitle="${external-module}"
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 -->
@@ -75,7 +85,7 @@
<include name="javax/"/>
</patternset>
<tar tarfile="${build.dir}/${project.name}-src.tar" >
<tar tarfile="${build.dir}/${name.external}-${impl.version}-src.tar" >
<tarfileset dir="${src.dir}">
<patternset refid="external-srcs"/>
</tarfileset>
@@ -83,8 +93,8 @@
<include name="manifest.commons"/>
</tarfileset>
</tar>
<gzip src="${build.dir}/${project.name}-src.tar" zipfile="${build.dir}/${project.name}-src.tar.gz"/>
<delete file="${build.dir}/${project.name}-src.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"