return results;
}
private BuildMessage convertMessage( final Message message ) {
final BuildMessage m = new BuildMessage();
switch ( message.getLevel() ) {
case ERROR:
m.setLevel( BuildMessage.Level.ERROR );
break;
case WARNING:
m.setLevel( BuildMessage.Level.WARNING );
break;
case INFO:
m.setLevel( BuildMessage.Level.INFO );
break;
}
m.setId( message.getId() );
m.setArtifactID( artifactId );
m.setLine( message.getLine() );
if ( message.getPath() != null && !message.getPath().isEmpty() ) {
m.setPath( handles.get( RESOURCE_PATH + "/" + message.getPath() ) );
}
m.setColumn( message.getColumn() );
m.setText( message.getText() );
return m;
}