maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject cvs commit: maven-components/maven-mboot2/src/main/java MBoot.java
Date Wed, 11 Aug 2004 06:21:14 GMT
evenisse    2004/08/10 23:21:13

  Modified:    maven-mboot2/src/main/java MBoot.java
  Log:
  Add some exception when we obtain compilation error or tests failures for stop the bootstrap
process.
  
  Revision  Changes    Path
  1.13      +10 -1     maven-components/maven-mboot2/src/main/java/MBoot.java
  
  Index: MBoot.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-mboot2/src/main/java/MBoot.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- MBoot.java	10 Aug 2004 18:58:21 -0000	1.12
  +++ MBoot.java	11 Aug 2004 06:21:13 -0000	1.13
  @@ -695,8 +695,12 @@
               excludes.add( "**/*Abstract*.java" );
           }
   
  -        testRunner.execute( repoLocal, basedir, classes, testClasses, includes, excludes,
classpath( reader.getDependencies(), null ) );
  +        boolean success = testRunner.execute( repoLocal, basedir, classes, testClasses,
includes, excludes, classpath( reader.getDependencies(), null ) );
   
  +        if ( !success )
  +        {
  +            throw new Exception ( "Tests error" );
  +        }
       }
   
       // ----------------------------------------------------------------------
  @@ -778,6 +782,11 @@
               for ( Iterator i = errors.iterator(); i.hasNext(); )
               {
                   System.out.println( i.next() );
  +            }
  +
  +            if ( errors.size() > 0 )
  +            {
  +                throw new Exception( "Compilation error." );
               }
           }
       }
  
  
  

Mime
View raw message