getLog().debug( "NPANDAY-1100-008: " + commands.toString() );
// pretty print nunit logs
getLog().info( System.getProperty( "line.separator" ) );
CommandExecutor commandExecutor = CommandExecutor.Factory.createDefaultCommmandExecutor();
try
{
commandExecutor.setLogger( new org.codehaus.plexus.logging.AbstractLogger( 0, "nunit-logger" )
{
Log log = getLog();
public void debug( String message, Throwable throwable )
{
log.debug( message, throwable );
}
public void error( String message, Throwable throwable )
{
log.error( message, throwable );
}
public void fatalError( String message, Throwable throwable )
{
log.error( message, throwable );
}
public Logger getChildLogger( String message )
{
return null;
}
public void info( String message, Throwable throwable )
{
log.info( message, throwable );
}
public void warn( String message, Throwable throwable )
{
log.warn( message, throwable );
}
} );
commandExecutor.executeCommand( getExecutableFor( vendorInfo ), commands );
}
catch ( ExecutionException e )
{
String line = System.getProperty( "line.separator" );
throw new MojoFailureException( "NPANDAY-1100-007: There are test failures." + line + line + e.getMessage(), e);