}
// Now that we have a list of files to process, we can "add" (scm checkin) them.
JazzAddConsumer addConsumer = new JazzAddConsumer( repo, getLogger() );
ErrorConsumer errConsumer = new ErrorConsumer( getLogger() );
JazzScmCommand command = createAddCommand( repo, fileSet );
int status = command.execute( addConsumer, errConsumer );
if ( status != 0 || errConsumer.hasBeenFed() )
{
return new AddScmResult( command.getCommandString(),
"Error code for Jazz SCM add (checkin) command - " + status,
errConsumer.getOutput(), false );
}
return new AddScmResult( command.getCommandString(), addConsumer.getFiles() );
}