Added testtargets task that checks all targets indipendently (cleans in between).
It builds succesfully here. Also changed gump target to run testtargets and then testmodule. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
415740891a
commit
6b06a2c54c
82
build.xml
82
build.xml
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet type="text/xsl" href="tools/antipede/resources/stylesheets/layout.xsl"?>
|
<?xml-stylesheet type="text/xsl" href="./tools/antipede/resources/stylesheets/layout.xsl"?>
|
||||||
<!DOCTYPE project [
|
<!DOCTYPE project [
|
||||||
<!-- antipede -->
|
<!-- antipede -->
|
||||||
<!ENTITY import-antipede SYSTEM "./tools/antipede/build.xtarget">
|
<!ENTITY import-antipede SYSTEM "./tools/antipede/build.xtarget">
|
||||||
@ -278,7 +278,7 @@ printed.
|
|||||||
<!-- Run Junit tests -->
|
<!-- Run Junit tests -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="test" depends="-init"
|
<target name="test" depends="compile"
|
||||||
description="Compile java source code">
|
description="Compile java source code">
|
||||||
|
|
||||||
<antcall target="call-cent">
|
<antcall target="call-cent">
|
||||||
@ -297,7 +297,7 @@ printed.
|
|||||||
<!-- Generate project metrics -->
|
<!-- Generate project metrics -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="metrics" depends="-init"
|
<target name="metrics" depends="compile"
|
||||||
description="Generate project metrics">
|
description="Generate project metrics">
|
||||||
|
|
||||||
<antcall target="call-cent">
|
<antcall target="call-cent">
|
||||||
@ -362,41 +362,7 @@ printed.
|
|||||||
sourcepath="${xlayout.build.java.dir}"
|
sourcepath="${xlayout.build.java.dir}"
|
||||||
destdir="${xlayout.build.documentation.metrics.dir}"
|
destdir="${xlayout.build.documentation.metrics.dir}"
|
||||||
failonerror="true">
|
failonerror="true">
|
||||||
<!--
|
|
||||||
<classpath>
|
|
||||||
<path>
|
|
||||||
<fileset dir=".">
|
|
||||||
<patternset>
|
|
||||||
<include name="${cents.dir}/uml.${cent.dir.suffix}/*/*.jar"/>
|
|
||||||
<include name="${cents.dir}/uml.${cent.dir.suffix}/*/*.zip"/>
|
|
||||||
</patternset>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${xlayout.library.dir}" casesensitive="yes">
|
|
||||||
<patternset>
|
|
||||||
<include name="*/*.jar"/>
|
|
||||||
<include name="*/*.zip"/>
|
|
||||||
</patternset>
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</classpath>
|
|
||||||
<bootclasspath>
|
|
||||||
<path>
|
|
||||||
<fileset dir="." casesensitive="yes">
|
|
||||||
<patternset>
|
|
||||||
<include name="${cents.dir}/uml.${cent.dir.suffix}/*/*.jar"/>
|
|
||||||
<include name="${cents.dir}/uml.${cent.dir.suffix}/*/*.zip"/>
|
|
||||||
</patternset>
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${xlayout.library.dir}" casesensitive="yes">
|
|
||||||
<patternset>
|
|
||||||
<include name="*/*.jar"/>
|
|
||||||
<include name="*/*.zip"/>
|
|
||||||
</patternset>
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
</bootclasspath>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<doclet name="JP.co.esm.caddies.doclets.UMLDoclet">
|
<doclet name="JP.co.esm.caddies.doclets.UMLDoclet">
|
||||||
</doclet>
|
</doclet>
|
||||||
|
|
||||||
@ -429,29 +395,55 @@ printed.
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
<!-- Test the main module stuff -->
|
<!-- Test the main module stuff -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="testmodule"
|
<target name="testmodule"
|
||||||
depends="clean, compile, test, jar, docs"
|
depends="clean, compile, test, jar, docs, metrics, javadocs"
|
||||||
description="Testing that all major targets work; useful before a commit"/>
|
description="Testing that all major targets work; useful before a commit"/>
|
||||||
|
|
||||||
|
<!-- ================================== -->
|
||||||
|
<!-- Test the main module stuff 2 -->
|
||||||
|
<!-- ================================== -->
|
||||||
|
|
||||||
|
<target name="testtargets"
|
||||||
|
description="Testing that all major targets work indipendently; useful before a commit">
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
<!-- Target used by Gump -->
|
<!-- Target used by Gump -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="gump"
|
<target name="gump"
|
||||||
depends="clean, compile, test, jar, docs, javadocs, metrics"
|
depends="testmodule"
|
||||||
description="Target used by Gump"/>
|
description="Target used by Gump">
|
||||||
|
|
||||||
|
<antcall target="clean"/>
|
||||||
|
<antcall target="testtargets"/>
|
||||||
|
<antcall target="clean"/>
|
||||||
|
<antcall target="testmodule"/>
|
||||||
|
|
||||||
|
</target>
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
<!-- Generate all -->
|
<!-- Generate all -->
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
|
||||||
<target name="all"
|
<target name="all"
|
||||||
depends="gump,jar"
|
depends="testmodule,jar"
|
||||||
description="Generate all"/>
|
description="Generate all"/>
|
||||||
|
|
||||||
<!-- ================================== -->
|
<!-- ================================== -->
|
||||||
|
Loading…
Reference in New Issue
Block a user