mirror of https://github.com/apache/maven.git
Add some exception when we obtain compilation error or tests failures for stop the bootstrap process.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23c279ed42
commit
668bcd6ac8
|
@ -695,8 +695,12 @@ public class MBoot
|
|||
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" );
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
@ -779,6 +783,11 @@ public class MBoot
|
|||
{
|
||||
System.out.println( i.next() );
|
||||
}
|
||||
|
||||
if ( errors.size() > 0 )
|
||||
{
|
||||
throw new Exception( "Compilation error." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue