diff options
author | Nicola Ken Barozzi <nicolaken@apache.org> | 2002-04-08 13:45:07 +0000 |
---|---|---|
committer | Nicola Ken Barozzi <nicolaken@apache.org> | 2002-04-08 13:45:07 +0000 |
commit | 6e5c586edc63c7e58f09bbc965d044928f19f5ca (patch) | |
tree | 120fcb2ef44de423a82f2611fc9d7762beae097a /build.xml | |
parent | e54798a810f487bb4a198dc02bdfbda219bfa577 (diff) | |
download | poi-6e5c586edc63c7e58f09bbc965d044928f19f5ca.tar.gz poi-6e5c586edc63c7e58f09bbc965d044928f19f5ca.zip |
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
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 82 |
1 files changed, 37 insertions, 45 deletions
@@ -1,5 +1,5 @@ <?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 [ <!-- antipede --> <!ENTITY import-antipede SYSTEM "./tools/antipede/build.xtarget"> @@ -278,7 +278,7 @@ printed. <!-- Run Junit tests --> <!-- ================================== --> - <target name="test" depends="-init" + <target name="test" depends="compile" description="Compile java source code"> <antcall target="call-cent"> @@ -297,7 +297,7 @@ printed. <!-- Generate project metrics --> <!-- ================================== --> - <target name="metrics" depends="-init" + <target name="metrics" depends="compile" description="Generate project metrics"> <antcall target="call-cent"> @@ -362,41 +362,7 @@ printed. sourcepath="${xlayout.build.java.dir}" destdir="${xlayout.build.documentation.metrics.dir}" 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> @@ -429,29 +395,55 @@ printed. </target> <!-- ================================== --> - <!-- Test the main module stuff --> + <!-- Test the main module stuff --> <!-- ================================== --> <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"/> + + <!-- ================================== --> + <!-- 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 name="gump" - depends="clean, compile, test, jar, docs, javadocs, metrics" - description="Target used by Gump"/> + depends="testmodule" + description="Target used by Gump"> - + <antcall target="clean"/> + <antcall target="testtargets"/> + <antcall target="clean"/> + <antcall target="testmodule"/> + + </target> <!-- ================================== --> <!-- Generate all --> <!-- ================================== --> <target name="all" - depends="gump,jar" + depends="testmodule,jar" description="Generate all"/> <!-- ================================== --> |