You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by av...@apache.org on 2003/05/04 11:17:06 UTC

cvs commit: jakarta-poi build.xml

avik        2003/05/04 02:17:06

  Modified:    .        build.xml
  Log:
  bringing back the ability to run one test at a time
  
  Revision  Changes    Path
  1.38      +17 -1     jakarta-poi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/build.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- build.xml	29 Apr 2003 02:24:26 -0000	1.37
  +++ build.xml	4 May 2003 09:17:06 -0000	1.38
  @@ -12,7 +12,7 @@
   
       LIBRARY         LOCATION
       =======         ========
  -    junit           http://www.ibiblio.org/maven/junit/jars/
  +    junit(3.8+)     http://www.ibiblio.org/maven/junit/jars/
       xerces          http://www.ibiblio.org/maven/xerces/jars/
       jdepend         http://www.ibiblio.org/maven/jdepend/jars/
   
  @@ -233,6 +233,22 @@
           </junit>
           <delete file="${main.testokfile}"/>
           <antcall target="-test-main-write-testfile"/>
  +    </target>
  +    
  +    <target name="single-test" depends="compile-main">
  +	<junit printsummary="no" showoutput="true" filtertrace="no" fork="no" haltonfailure="${halt.on.test.failure}" failureproperty="main.test.failed" >
  +	<classpath>
  +                <path refid="main.classpath"/>
  +                <pathelement location="${main.output.dir}"/>
  +                <pathelement location="${main.output.test.dir}"/>
  +                <pathelement location="${junit.jar1.dir}"/>
  +            </classpath>
  +	    <sysproperty key="HSSF.testdata.path" value="${main.src.test}/org/apache/poi/hssf/data"/>
  +            <sysproperty key="HPSF.testdata.path" value="${main.src.test}/org/apache/poi/hpsf/data"/>
  +            <formatter type="plain" usefile="no"/>
  +            <formatter type="xml"/>
  +	    <test name="${testcase}" />
  +	</junit>
       </target>
   
       <target name="-test-main-write-testfile" unless="main.test.failed">