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:
@@ -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 © ${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't support install."/>
|
||||
<echo message="${name.which} currently doesn't support install."/>
|
||||
</target>
|
||||
|
||||
<target name="uninstall">
|
||||
<echo message="${name} currently doesn't support uninstall."/>
|
||||
<echo message="${name.which} currently doesn'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'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't have any user documents in a printable format."/>
|
||||
<echo message="${name.which} currently doesn'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't support 'dist'."/>
|
||||
<echo message="${name.which} currently doesn't support 'dist'."/>
|
||||
</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 -->
|
||||
|
||||
Reference in New Issue
Block a user