]> source.dussan.org Git - poi.git/commitdiff
Add target single-test-ooxml
authorNick Burch <nick@apache.org>
Tue, 11 Mar 2008 12:52:46 +0000 (12:52 +0000)
committerNick Burch <nick@apache.org>
Tue, 11 Mar 2008 12:52:46 +0000 (12:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@635904 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 98658fbad6f73b997791cd8f4d54b1fa910a95a3..b023cfdaf41568881e30f937e94844418b43f161 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -689,14 +689,14 @@ under the License.
 
        <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>
+               <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="${main.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"/>
@@ -704,7 +704,7 @@ under the License.
                 <sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/>
                 <sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/>
                    <sysproperty key="java.awt.headless" value="true"/>
-                       <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}"/>
@@ -784,6 +784,28 @@ under the License.
         <echo file="${ooxml.testokfile}" append="false" message="testok"/>
     </target>
 
+    <target name="single-test-ooxml" depends="-test-property-check,compile-main,compile-ooxml" description="Runs a single ooxml test case specified with -Dtestcase=classname">
+        <junit printsummary="yes" showoutput="true" filtertrace="no" haltonfailure="false" >
+            <classpath>
+                <path refid="ooxml.classpath"/>
+                <pathelement location="${main.output.dir}"/>
+                <pathelement location="${ooxml.output.dir}"/>
+                <pathelement location="${ooxml.output.test.dir}"/>
+                <pathelement location="${junit.jar1.dir}"/>
+            </classpath>
+            <sysproperty key="HSSF.testdata.path" file="${main.src.test}/org/apache/poi/hssf/data"/>
+            <sysproperty key="HPSF.testdata.path" file="${main.src.test}/org/apache/poi/hpsf/data"/>
+            <sysproperty key="HSLF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hslf/data"/>
+            <sysproperty key="HWPF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hwpf/data"/>
+            <sysproperty key="HSMF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hsmf/data"/>
+            <sysproperty key="HDGF.testdata.path" file="${scratchpad.src.test}/org/apache/poi/hdgf/data"/>
+            <sysproperty key="java.awt.headless" value="true"/>
+            <formatter type="plain" usefile="no"/>
+            <formatter type="xml"/>
+            <test name="${testcase}"/>
+        </junit>
+    </target>
+
     <target name="-check-docs">
         <uptodate property="main.docs.notRequired" targetfile="${build.site}/index.html">
             <srcfiles dir="${build.site.src}"/>