2002-02-14 21:11:36 -05:00
|
|
|
<?xml version="1.0"?>
|
2002-04-08 09:45:07 -04:00
|
|
|
<?xml-stylesheet type="text/xsl" href="./tools/antipede/resources/stylesheets/layout.xsl"?>
|
2002-02-14 21:11:36 -05:00
|
|
|
<!DOCTYPE project [
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- antipede -->
|
|
|
|
<!ENTITY import-antipede SYSTEM "./tools/antipede/build.xtarget">
|
2002-04-06 12:36:35 -05:00
|
|
|
|
|
|
|
<!ELEMENT project ANY>
|
|
|
|
<!ATTLIST project default CDATA #REQUIRED
|
|
|
|
basedir CDATA #IMPLIED
|
|
|
|
name CDATA #IMPLIED>
|
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
]>
|
|
|
|
<project default="interactive" basedir="." name="project build file">
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<description>
|
2002-02-14 21:11:36 -05:00
|
|
|
* ===================================== *
|
|
|
|
| Krysalis Centipede Build System |
|
2002-04-18 04:56:02 -04:00
|
|
|
* ===================================== *
|
2002-01-30 21:22:28 -05:00
|
|
|
by
|
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
Nicola Ken Barozzi (nicolaken@apache.org)
|
|
|
|
Marc Johnson (mjohnson@apache.org)
|
2002-02-14 21:11:36 -05:00
|
|
|
|
2002-04-18 04:56:02 -04:00
|
|
|
|
|
|
|
For a simple interactive build, simply
|
|
|
|
run the build script (build.bar or build.sh)
|
2002-04-03 12:06:10 -05:00
|
|
|
</description>
|
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Basic build targets for the project -->
|
|
|
|
<!-- =================================================================== -->
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-04 09:43:45 -05:00
|
|
|
<!-- =================================================================== -->
|
2002-04-11 14:00:20 -04:00
|
|
|
<!-- Interactive build -->
|
2002-04-04 09:43:45 -05:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="interactive" description="Interactive Build" depends="-init">
|
2002-04-18 05:45:20 -04:00
|
|
|
<echo>
|
|
|
|
--------------------------------------------------------------
|
2002-04-11 14:00:20 -04:00
|
|
|
|
2002-04-18 05:45:20 -04:00
|
|
|
${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} [${YEAR}]
|
2002-04-04 09:43:45 -05:00
|
|
|
|
2002-04-18 05:45:20 -04:00
|
|
|
--------------------------------------------------------------
|
|
|
|
Using ${ant.version}
|
|
|
|
Build file ${ant.file}
|
|
|
|
--------------------------------------------------------------
|
|
|
|
These are the most common build targets.
|
|
|
|
You can also invoke them directly; see build.xml for more info.
|
|
|
|
Builds will be in /build directory, distributions in /dist.
|
|
|
|
|
|
|
|
all -------------- creates the jars and the site
|
|
|
|
compile ---------- compiles the source code
|
|
|
|
test ------------- performs the jUnit tests
|
|
|
|
jar -------------- create the jar files
|
|
|
|
docs ------------- generates the html docs - clean not needed
|
|
|
|
javadocs --------- generates the API documentation
|
|
|
|
site ------------- generates the html site (docs+reports)
|
|
|
|
clean ------------ cleans the build directory
|
|
|
|
dist ------------- creates src and bin distributions
|
|
|
|
scratchpad ------- build-run scratchpad code
|
|
|
|
contrib ---------- build-run contributed code
|
|
|
|
generate-records - generate excel records
|
|
|
|
generate-types --- generate word types
|
|
|
|
|
|
|
|
</echo>
|
|
|
|
<property name="input.selection" value="all"/>
|
|
|
|
<centipede-user-input name="input.selection">Please select a target </centipede-user-input>
|
2002-04-18 04:56:02 -04:00
|
|
|
|
2002-04-06 12:36:35 -05:00
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="splash"/>
|
|
|
|
</antcall>
|
2002-04-04 09:43:45 -05:00
|
|
|
|
|
|
|
<antcall target="${input.selection}"/>
|
|
|
|
|
|
|
|
</target>
|
2002-04-03 12:06:10 -05:00
|
|
|
|
2002-04-06 12:36:35 -05:00
|
|
|
|
|
|
|
|
2002-04-04 09:43:45 -05:00
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Interactive scratchpad builds -->
|
|
|
|
<!-- =================================================================== -->
|
2002-04-08 13:32:31 -04:00
|
|
|
<target name="scratchpad" depends="compile" description="Interactive Scratchpad Build">
|
2002-04-11 14:00:20 -04:00
|
|
|
<echo>
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} SCRATCHPAD
|
|
|
|
|
|
|
|
--------------------------------------------------------------
|
|
|
|
Building with ${ant.version}
|
|
|
|
using build file ${ant.file}
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
These are SCRATCHPAD BUILDS. They are not guaranteed to work.
|
|
|
|
You have been warned.
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
</echo>
|
2002-04-04 09:43:45 -05:00
|
|
|
<property name="input.selection" value=""/>
|
|
|
|
<centipede-user-input name="input.selection">Please select a target </centipede-user-input>
|
|
|
|
|
|
|
|
<ant antfile="${xlayout.source.scratchpad.targets.dir}/${input.selection}/xbuild.xml"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Interactive contrib builds -->
|
|
|
|
<!-- =================================================================== -->
|
2002-04-08 13:32:31 -04:00
|
|
|
<target name="contrib" depends="compile" description="Interactive Contributors' Build">
|
2002-04-11 14:00:20 -04:00
|
|
|
<echo>
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
${xgump.module.project.name} ${xgump.module.project.version.major}.${xgump.module.project.version.minor} CONTRIB
|
|
|
|
|
|
|
|
--------------------------------------------------------------
|
|
|
|
Building with ${ant.version}
|
|
|
|
using build file ${ant.file}
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
These are CONTRIB BUILDS. They are not guaranteed to work.
|
|
|
|
You have been warned.
|
|
|
|
|
|
|
|
poibrowser - POIBrowser 0.10 GUI POI Viewer
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
</echo>
|
|
|
|
|
2002-04-04 09:43:45 -05:00
|
|
|
<property name="input.selection" value="poibrowser"/>
|
|
|
|
<centipede-user-input name="input.selection">Please select a target </centipede-user-input>
|
|
|
|
|
|
|
|
<ant antfile="${xlayout.source.contributions.targets.dir}/${input.selection}/xbuild.xml"/>
|
|
|
|
|
|
|
|
</target>
|
2002-04-03 12:06:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Compile -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="compile" depends="-init"
|
|
|
|
description="Compile java source code">
|
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="compile"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-06 12:36:35 -05:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Build jars -->
|
|
|
|
<!-- ================================== -->
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<target name="jar" depends="-init"
|
|
|
|
description="Compile java source code">
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="package"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-04-15 02:44:21 -04:00
|
|
|
<!-- ====================================== -->
|
|
|
|
<!-- dist target wo single build checks -->
|
|
|
|
<!-- ====================================== -->
|
|
|
|
|
2002-04-18 14:12:26 -04:00
|
|
|
<target name="dist" depends="-init, clean, jar, site, test"
|
2002-04-15 02:44:21 -04:00
|
|
|
description="Build distribution packages wo single build checks">
|
2002-01-30 21:22:28 -05:00
|
|
|
|
2002-04-08 13:32:31 -04:00
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="dist"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-04-15 02:44:21 -04:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Clean build dir -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="clean" depends="-init"
|
|
|
|
description="Compile java source code">
|
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="clean"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Run Junit tests -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
2002-04-15 02:44:21 -04:00
|
|
|
<target name="test" depends="-init, compile"
|
2002-04-03 12:06:10 -05:00
|
|
|
description="Compile java source code">
|
|
|
|
|
2002-04-18 11:41:48 -04:00
|
|
|
<antcall target="call-cent">
|
2002-04-03 12:06:10 -05:00
|
|
|
<param name="cent-name" value="junit"/>
|
|
|
|
<param name="cent-target" value="test"/>
|
|
|
|
</antcall>
|
2002-02-14 21:11:36 -05:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="junit"/>
|
|
|
|
<param name="cent-target" value="report"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
2002-04-06 04:35:38 -05:00
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate project metrics -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
2002-04-15 02:44:21 -04:00
|
|
|
<target name="metrics" depends="-init, compile"
|
2002-04-06 04:35:38 -05:00
|
|
|
description="Generate project metrics">
|
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="jdepend"/>
|
|
|
|
<param name="cent-target" value="jdepend-html"/>
|
|
|
|
</antcall>
|
|
|
|
|
2002-04-18 11:41:48 -04:00
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="checkstyle"/>
|
|
|
|
<param name="cent-target" value="check"/>
|
|
|
|
</antcall>
|
|
|
|
|
2002-04-06 04:35:38 -05:00
|
|
|
</target>
|
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generates the documentation -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="docs" depends="-init"
|
|
|
|
description="Compile java source code">
|
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="forrest"/>
|
|
|
|
<param name="cent-target" value="docs"/>
|
|
|
|
</antcall>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-04-09 07:14:48 -04:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generates the site -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="site"
|
2002-04-15 02:44:21 -04:00
|
|
|
description="Makes all the site doco"
|
|
|
|
depends="docs,
|
|
|
|
test,
|
|
|
|
javadocs,
|
|
|
|
metrics"/>
|
2002-04-09 07:14:48 -04:00
|
|
|
|
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
2002-04-15 05:24:04 -04:00
|
|
|
<!-- Generates the java docs -->
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="javadocs" depends="-init"
|
|
|
|
description="Compile java source code">
|
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="centipede"/>
|
|
|
|
<param name="cent-target" value="javadocs"/>
|
|
|
|
</antcall>
|
2002-04-15 05:24:04 -04:00
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="umldoclet"/>
|
|
|
|
<param name="cent-target" value="doclet"/>
|
|
|
|
</antcall>
|
2002-04-18 04:56:02 -04:00
|
|
|
|
|
|
|
<antcall target="call-cent">
|
|
|
|
<param name="cent-name" value="javasrc"/>
|
|
|
|
<param name="cent-target" value="javasrc"/>
|
|
|
|
</antcall>
|
2002-04-18 11:41:48 -04:00
|
|
|
|
2002-04-18 04:56:02 -04:00
|
|
|
</target>
|
2002-04-18 11:41:48 -04:00
|
|
|
|
2002-04-04 09:43:45 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate records -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="generate-records" depends="-init"
|
|
|
|
description="generate-records">
|
|
|
|
|
|
|
|
<ant antfile="${xlayout.source.targets.dir}/record-generation/xbuild.xml"
|
|
|
|
target="generate-records"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate types -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="generate-types" depends="-init"
|
|
|
|
description="generate-types">
|
|
|
|
|
|
|
|
<ant antfile="${xlayout.source.targets.dir}/record-generation/xbuild.xml"
|
|
|
|
target="generate-types"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
2002-04-08 09:45:07 -04:00
|
|
|
<!-- Test the main module stuff -->
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
|
2002-04-04 09:43:45 -05:00
|
|
|
<target name="testmodule"
|
2002-04-08 15:12:29 -04:00
|
|
|
depends="clean, docs, compile, test, jar, metrics, javadocs"
|
2002-04-03 12:06:10 -05:00
|
|
|
description="Testing that all major targets work; useful before a commit"/>
|
2002-04-08 09:45:07 -04:00
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Test the main module stuff 2 -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="testtargets"
|
|
|
|
description="Testing that all major targets work indipendently; useful before a commit">
|
2002-04-03 12:06:10 -05:00
|
|
|
|
2002-04-08 09:45:07 -04:00
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="compile"/>
|
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="test"/>
|
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="jar"/>
|
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="docs"/>
|
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="metrics"/>
|
|
|
|
<antcall target="clean"/>
|
|
|
|
<antcall target="javadocs"/>
|
|
|
|
|
|
|
|
</target>
|
2002-04-15 02:44:21 -04:00
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Test 4 distribution -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="testall" depends="-init"
|
|
|
|
description="Make big full test">
|
|
|
|
|
|
|
|
<antcall target="gump"/>
|
|
|
|
<antcall target="quickdist"/>
|
|
|
|
|
|
|
|
</target>
|
2002-04-08 09:45:07 -04:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Target used by Gump -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="gump"
|
2002-04-08 09:45:07 -04:00
|
|
|
depends="testmodule"
|
|
|
|
description="Target used by Gump">
|
2002-04-03 12:06:10 -05:00
|
|
|
|
2002-04-08 09:45:07 -04:00
|
|
|
<antcall target="testtargets"/>
|
|
|
|
<antcall target="testmodule"/>
|
2002-04-11 14:00:20 -04:00
|
|
|
<antcall target="all"/>
|
2002-04-08 09:45:07 -04:00
|
|
|
|
|
|
|
</target>
|
2002-04-11 14:00:20 -04:00
|
|
|
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate all -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="all"
|
2002-04-11 14:00:20 -04:00
|
|
|
depends="-init, jar, site"
|
2002-04-03 12:06:10 -05:00
|
|
|
description="Generate all"/>
|
2002-04-11 14:00:20 -04:00
|
|
|
|
2002-01-30 21:22:28 -05:00
|
|
|
<!-- =================================================================== -->
|
2002-04-03 12:06:10 -05:00
|
|
|
<!-- Import Ant-Centipede -init targets - sets up basic build stuff -->
|
2002-01-30 21:22:28 -05:00
|
|
|
<!-- =================================================================== -->
|
2002-04-03 12:06:10 -05:00
|
|
|
<!--
|
|
|
|
This is the target that initializes tasks and properties used
|
|
|
|
commonly in every other target.
|
|
|
|
|
|
|
|
Remember to add depends="-init" to every target, so that this
|
|
|
|
target is called before any other.
|
|
|
|
|
|
|
|
This target is internal; to make it unusable from the commandline,
|
|
|
|
its name starts with a hyphen. To make it invisible when
|
|
|
|
using -projecthelp, it lacks a description.
|
|
|
|
-->
|
|
|
|
|
|
|
|
&import-antipede;
|
|
|
|
|
2002-01-30 21:22:28 -05:00
|
|
|
</project>
|