You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/02/15 01:24:43 UTC

svn commit: r1244288 - /lucene/dev/branches/lucene3767/lucene/common-build.xml

Author: rmuir
Date: Wed Feb 15 00:24:43 2012
New Revision: 1244288

URL: http://svn.apache.org/viewvc?rev=1244288&view=rev
Log:
stream output when using -Dtestcase

Modified:
    lucene/dev/branches/lucene3767/lucene/common-build.xml

Modified: lucene/dev/branches/lucene3767/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3767/lucene/common-build.xml?rev=1244288&r1=1244287&r2=1244288&view=diff
==============================================================================
--- lucene/dev/branches/lucene3767/lucene/common-build.xml (original)
+++ lucene/dev/branches/lucene3767/lucene/common-build.xml Wed Feb 15 00:24:43 2012
@@ -54,6 +54,17 @@
 
   <property name="junit.jar" value="junit-4.7.jar"/>
   <property name="junit-location.jar" value="${common.dir}/lib/${junit.jar}"/>
+
+  <condition property="junit.showoutput">
+    <isset property="testcase"/>
+  </condition>
+
+  <condition property="junit.outputtoformatters">
+    <not>
+      <isset property="testcase"/>
+    </not>
+  </condition>
+
   <path id="junit-path">
     <pathelement location="${junit-location.jar}"/>
   </path>
@@ -585,7 +596,8 @@
 	    -->
     	<touch file="@{tempDir}/@{threadNum}/quiet.ant" verbose="false" mkdirs="true"/>
 	    <junit printsummary="off" haltonfailure="no" maxmemory="${tests.heapsize}" tempdir="@{tempDir}/@{threadNum}"
-	      errorProperty="tests.failed" failureProperty="tests.failed" forkmode="perBatch" dir="@{tempDir}/@{threadNum}">
+	      errorProperty="tests.failed" failureProperty="tests.failed" forkmode="perBatch" dir="@{tempDir}/@{threadNum}"
+          showoutput="${junit.showoutput}">
 	      <classpath refid="@{junit.classpath}"/>
 	      <assertions>
 	        <enable package="org.apache.lucene"/>