You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2012/02/08 00:59:38 UTC

svn commit: r1241707 - /incubator/jspwiki/trunk/build.xml

Author: juanpablo
Date: Tue Feb  7 23:59:38 2012
New Revision: 1241707

URL: http://svn.apache.org/viewvc?rev=1241707&view=rev
Log:
added failureproperty to junit task. If there is any test failure, build will break.

Modified:
    incubator/jspwiki/trunk/build.xml

Modified: incubator/jspwiki/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/build.xml?rev=1241707&r1=1241706&r2=1241707&view=diff
==============================================================================
--- incubator/jspwiki/trunk/build.xml (original)
+++ incubator/jspwiki/trunk/build.xml Tue Feb  7 23:59:38 2012
@@ -688,7 +688,7 @@
     </condition>
     <antcall target="buildjar" />
     
-    <junit printsummary="yes" haltonfailure="no" fork="yes">
+    <junit printsummary="yes" haltonfailure="no" fork="yes" failureproperty="test.failed">
         <classpath>
            <path refid="path.tests" />
         </classpath>
@@ -712,7 +712,8 @@
   	    </fileset>
   	    <report format="noframes" todir="${tests.src}" />
   	 </junitreport>
-
+     
+     <fail message="Test failure detected, check test results." if="test.failed" />
   </target>
 
   <target name="tests-auth" depends="jar,tests-init,jartests"