2002-12-20 10:26:32 -05:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<project default="interactive" basedir="." name="project build file">
|
|
|
|
|
2003-01-14 10:10:51 -05:00
|
|
|
<description>Jakarta POI buildfile</description>
|
2002-12-20 10:26:32 -05:00
|
|
|
|
2003-01-14 10:10:51 -05:00
|
|
|
<taskdef resource="centipede"/>
|
|
|
|
<centipede/>
|
2002-12-21 06:28:30 -05:00
|
|
|
|
2002-12-23 12:56:08 -05:00
|
|
|
<importcent name="java" />
|
2002-12-20 10:56:51 -05:00
|
|
|
<importcent name="junit" />
|
2003-01-14 10:10:51 -05:00
|
|
|
|
|
|
|
<!-- These work locally, but still need to be set in Gump
|
|
|
|
|
|
|
|
<importcent name="doxygen-gpl" />
|
|
|
|
<importcent name="pmd" />
|
|
|
|
<importcent name="statcvs-gpl" />
|
|
|
|
<importcent name="nounit-gpl" />
|
|
|
|
<importcent name="dir2xml" />
|
|
|
|
<importcent name="essmodel-gpl" />
|
2002-12-20 10:26:32 -05:00
|
|
|
<importcent name="checkstyle" />
|
|
|
|
<importcent name="forrest" />
|
2002-12-23 12:56:08 -05:00
|
|
|
<importcent name="changelog" />
|
2002-12-21 06:28:30 -05:00
|
|
|
|
2003-01-14 10:10:51 -05:00
|
|
|
-->
|
2002-12-20 10:26:32 -05:00
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Basic build targets for the project -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<!-- Interactive build -->
|
|
|
|
<!-- =================================================================== -->
|
|
|
|
<target name="interactive" description="Interactive Build">
|
|
|
|
<echo>
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
2002-12-20 10:56:51 -05:00
|
|
|
${jxpath:/references/module.xml/root/module/project[1]/@name} [${YEAR}]
|
2002-12-20 10:26:32 -05: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
|
|
|
|
poibrowser - POIBrowser 0.10 GUI POI Viewer
|
|
|
|
sheetviewer - SheetViewer 0.20 GUI Applet/Application Viewer for XLS files
|
|
|
|
|
|
|
|
</echo>
|
|
|
|
|
|
|
|
<input message="Please select a target "
|
|
|
|
addproperty="input.selection"/>
|
|
|
|
|
|
|
|
<condition property="do.abort">
|
|
|
|
<equals arg1="" arg2="input.selection" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<fail if="do.abort">Build aborted by user.</fail>
|
|
|
|
|
|
|
|
<antrun target="splash"/>
|
|
|
|
<antrun target="${input.selection}"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate records -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="generate-records"
|
|
|
|
description="generate-records">
|
|
|
|
|
2002-12-20 10:56:51 -05:00
|
|
|
<ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
|
2002-12-20 10:26:32 -05:00
|
|
|
target="generate-records"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate types -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="generate-types"
|
|
|
|
description="generate-types">
|
|
|
|
|
2002-12-20 10:56:51 -05:00
|
|
|
<ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
|
2002-12-20 10:26:32 -05:00
|
|
|
target="generate-types"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2002-12-21 06:28:30 -05:00
|
|
|
|
2002-12-20 10:26:32 -05:00
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Target used by Gump -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="gump"
|
2002-12-23 12:56:08 -05:00
|
|
|
depends="compile, package, test"
|
2002-12-20 10:26:32 -05:00
|
|
|
description="Target used by Gump"/>
|
|
|
|
|
|
|
|
<!-- ================================== -->
|
|
|
|
<!-- Generate all -->
|
|
|
|
<!-- ================================== -->
|
|
|
|
|
|
|
|
<target name="all"
|
|
|
|
depends="package"
|
|
|
|
description="Generate all"/>
|
|
|
|
|
2002-12-21 06:28:30 -05:00
|
|
|
|
2002-12-20 10:26:32 -05:00
|
|
|
|
|
|
|
</project>
|