commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject cvs commit: jakarta-commons-sandbox/net build.xml
Date Wed, 09 Oct 2002 05:26:33 GMT
brekke      2002/10/08 22:26:33

  Modified:    net      build.xml
  Log:
  Patched Maven to generate a build script that will fail the build if any
  test fails.  This is a build script generated with that change.
  
  Revision  Changes    Path
  1.12      +5 -2      jakarta-commons-sandbox/net/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/net/build.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- build.xml	7 Oct 2002 13:39:47 -0000	1.11
  +++ build.xml	9 Oct 2002 05:26:33 -0000	1.12
  @@ -71,9 +71,12 @@
       </copy>
     </target>
    
  -  <target name="test" description="o Run the test cases" depends="compile-tests">
  +  <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
  +    <fail message="There were test failures."></fail>
  +  </target>
  +  <target name="internal-test" depends="compile-tests">
       <mkdir dir="${testreportdir}"></mkdir>
  -    <junit dir="./" printSummary="yes" fork="true" haltonerror="true">
  +    <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
         <sysproperty key="basedir" value="src/test"></sysproperty>
         <formatter type="xml"></formatter>
         <formatter usefile="true" type="plain"></formatter>
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message