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:
Emmanuel Venisse 2004-08-11 06:21:13 +00:00
parent 23c279ed42
commit 668bcd6ac8
1 changed files with 10 additions and 1 deletions

View File

@ -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." );
}
}
}