nicolaken    02/04/08 06:45:07

  Modified:    .        build.xml
  Log:
  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.
  
  Revision  Changes    Path
  1.12      +37 -45    jakarta-poi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/build.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- build.xml 8 Apr 2002 07:19:40 -0000       1.11
  +++ build.xml 8 Apr 2002 13:45:07 -0000       1.12
  @@ -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 @@
     <!--         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 @@
     <!--      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 @@
                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 @@
     </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"/>
              
     <!-- ================================== -->
  
  
  


Reply via email to