poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi build.xml
Date Thu, 19 May 2005 12:03:42 GMT
avik        2005/05/19 05:03:42

  Modified:    .        build.xml
  Log:
  build tweaks
  
  Revision  Changes    Path
  1.72      +26 -3     jakarta-poi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/build.xml,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- build.xml	16 May 2005 21:46:19 -0000	1.71
  +++ build.xml	19 May 2005 12:03:41 -0000	1.72
  @@ -164,6 +164,8 @@
   
         -Ddisconnected="true": Do not execute any targets that require an online
             connection to the Internet.
  +      -Dtestcase=org.apache.poi.xxx.xxx : for the single-test target, specify
  +	      the test to run
   
         WARNING: This list is not exhaustive.
       </echo>
  @@ -328,7 +330,7 @@
   
     <target name="test-main" unless="main.test.notRequired"
       depends="compile-main, -test-main-check, fail-unless-junit-is-available">
  -    <junit fork="no" printsummary="no" haltonfailure="${halt.on.test.failure}"
  +    <junit fork="no" printsummary="yes" haltonfailure="${halt.on.test.failure}"
         failureproperty="main.test.failed" showoutput="true">
         <classpath refid="test.classpath"/>
         <sysproperty key="HSSF.testdata.path"
  @@ -387,7 +389,7 @@
           <junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false"
>
               <classpath refid="test.classpath"/>
                    <classpath>
  -                                <path refid="scratchpad.classpath"/>
  +                                <path refid="test.classpath"/>
                                   <pathelement location="${main.output.dir}"/>
                                   <pathelement location="${scratchpad.output.dir}"/>
                                   <pathelement location="${scratchpad.output.test.dir}"/>
  @@ -434,7 +436,7 @@
       </target>
   
       <target name="test-scratchpad" depends="compile-scratchpad,-test-scratchpad-check"
unless="scratchpad.test.notRequired">
  -        <junit printsummary="no" fork="no" haltonfailure="${halt.on.test.failure}" failureproperty="scratchpad.test.failed">
  +        <junit printsummary="yes" fork="no" haltonfailure="${halt.on.test.failure}"
failureproperty="scratchpad.test.failed">
               <classpath>
                   <path refid="scratchpad.classpath"/>
                   <pathelement location="${main.output.dir}"/>
  @@ -464,6 +466,27 @@
           <echo file="${scratchpad.testokfile}" append="false" message="testok"/>
       </target>
   
  +	<target name="single-scratchpad-test" depends="compile-scratchpad,-test-property-check"
description="Runs a single test case specified with -Dtestcase=classname">
  +	        <junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false"
>
  +	            <classpath refid="test.classpath"/>
  +	                 <classpath>
  +	                                <path refid="scratchpad.classpath"/>
  +	                                <pathelement location="${main.output.dir}"/>
  +	                                <pathelement location="${scratchpad.output.dir}"/>
  +	                                <pathelement location="${scratchpad.output.test.dir}"/>
  +	                                <pathelement location="${junit.jar1.dir}"/>
  +	                            </classpath>
  +	            <sysproperty key="HSSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hssf/data"/>
  +	            <sysproperty key="HPSF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hpsf/data"/>
  +	            <sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/>
  +	            <sysproperty key="java.awt.headless" value="true"/>
  +	                <sysproperty key="java.awt.headless" value="true"/>
  +	            <formatter type="plain" usefile="no"/>
  +	            <formatter type="xml"/>
  +	            <test name="${testcase}"/>
  +	        </junit>
  +	    </target>
  +	
       <target name="-test-contrib-check">
           <uptodate property="contrib.test.notRequired" targetfile="${contrib.testokfile}">
               <srcfiles dir="${contrib.src}"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message