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"

View File

@@ -3,14 +3,12 @@
Build file for org.apache.env.Which service. No dependencies.
@author shane_curcuru@us.ibm.com
-->
<project default="all">
<project name="xml-commons-which" default="all" >
<!-- Name and version information -->
<property name="name" value="xml-commons"/>
<property name="version" value="1.0"/>
<!-- Name and version of the project -->
<property name="project.name" value="${name}-${version}"/>
<property name="name.which" value="xml-commons-which"/>
<property name="impl.name" value="XmlWhich"/>
<property name="impl.version" value="${version}"/>
<!-- Allow properties following these statements to be overridden -->
<!-- Note that all of these don't have to exist. They've just been defined
@@ -23,13 +21,13 @@ Build file for org.apache.env.Which service. No dependencies.
<!-- Location of where to put our build output -->
<property name="tmp.dir" value="."/>
<!-- Build directory -->
<!-- Build directories -->
<property name="build.dir" value="${tmp.dir}/build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
<property name="docs.dir" value="${build.dir}"/>
<property name="docs.java.dir" value="${docs.dir}/javadocs"/>
<property name="docs.user.dir" value="${docs.dir}/docs"/>
<property name="docs.printer.dir" value="${docs.dir}/printer"/>
<property name="docs.java.dir" value="${docs.user.dir}/javadocs"/>
<property name="docs.printer.dir" value="${docs.user.dir}/printer"/>
<!-- Source constants and directories -->
<property name="src.dir" value="src" />
@@ -53,16 +51,13 @@ Build file for org.apache.env.Which service. No dependencies.
<property name="copyright.message"
value="Copyright &#169; ${copyright.date} ${company.name}. All Rights Reserved."/>
<!-- Time stamp patterns -->
<property name="timestamp.distname.pattern" value="yyyy-mm-dd"/>
<!-- Public Targets -->
<target name="main"
depends="all, check"
description="Alias for all, check."/>
<target name="all"
depends="jar"
depends="jar,docs,javadocs"
description="This is the default target. Compiles the program.">
</target>
@@ -74,26 +69,25 @@ Build file for org.apache.env.Which service. No dependencies.
<target name="jar" depends="compile"
description="Jar all classes">
<echo message="Jarring ${env.jar} from ${build.classes.dir}" />
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" includes="**/*.properties"/>
</copy>
<jar jarfile="${env.jar}" manifest="${src.dir}/manifest.which" basedir="${build.classes.dir}" />
<jar jarfile="${env.jar}" manifest="${build.dir}/manifest.which" basedir="${build.classes.dir}" />
</target>
<target name="install">
<echo message="${name} currently doesn&apos;t support install."/>
<echo message="${name.which} currently doesn&apos;t support install."/>
</target>
<target name="uninstall">
<echo message="${name} currently doesn&apos;t support uninstall."/>
<echo message="${name.which} currently doesn&apos;t support uninstall."/>
</target>
<target name="clean"
description="Deletes all files that are generated by the build.">
<delete>
<fileset dir="${build.dir}"/>
</delete>
<delete dir="${build.dir}"/>
</target>
<target name="distclean"
@@ -104,7 +98,6 @@ Build file for org.apache.env.Which service. No dependencies.
<target name="docs"
depends="javadocs, printerdocs"
description="Generates all documentation for a project.">
<echo message="${name} currently doesn&apos;t have any user documents."/>
</target>
<target name="javadocs"
@@ -118,8 +111,8 @@ Build file for org.apache.env.Which service. No dependencies.
author="true"
version="true"
use="true"
windowtitle="${name} API"
doctitle="${name}"
windowtitle="${name.which} API"
doctitle="${name.which}"
bottom="${copyright.message}">
</javadoc>
</target>
@@ -127,13 +120,13 @@ Build file for org.apache.env.Which service. No dependencies.
<target name="printerdocs"
depends="init"
description="Generates a printer friendly version of the documentation.">
<echo message="${name} currently doesn&apos;t have any user documents in a printable format."/>
<echo message="${name.which} currently doesn&apos;t have any user documents in a printable format."/>
</target>
<target name="dist"
depends="all, docs"
description="Generates all the artifacts used for a distribution.">
<echo message="${name} currently doesn&apos;t support &apos;dist&apos;."/>
<echo message="${name.which} currently doesn&apos;t support &apos;dist&apos;."/>
</target>
<target name="test"
@@ -156,16 +149,13 @@ Build file for org.apache.env.Which service. No dependencies.
<!-- Internal Targets -->
<target name="init">
<!-- This target should initialise things like timestamps and set
available properties. -->
<echo message="Building ${name} (version: ${version}) Buildfile: $Revision$."/>
<echo message="Building ${name.which} (version: ${version}) Buildfile: $Revision$"/>
<mkdir dir="${build.classes.dir}" />
<mkdir dir="${docs.java.dir}" />
<mkdir dir="${docs.user.dir}" />
<tstamp>
<format property="timestamp.distname" pattern="${timestamp.distname.pattern}"/>
</tstamp>
<mkdir dir="${docs.java.dir}" />
<filter token="impl.version" value="${impl.version}"/>
<filter token="impl.name" value="${impl.name}"/>
<copy todir="${build.dir}" file="${src.dir}/manifest.which" filtering="true"/>
</target>
<!-- Project specific Targets -->