scmFileList.add( new ScmFile( siMember.getTargetFilePath(), ScmFileStatus.UNKNOWN ) );
}
catch ( APIException ae )
{
exportSuccess = false;
ExceptionHandler eh = new ExceptionHandler( ae );
getLogger().error( "MKS API Exception: " + eh.getMessage() );
getLogger().debug( eh.getCommand() + " exited with return code " + eh.getExitCode() );
}
}
// Lets advice the user that we've checked out all the members
getLogger().info(
"Exported " + scmFileList.size() + " files out of a total of " + projectMembers.size() + " files!" );
if ( exportSuccess )
{
result = new ExportScmResult( "si co", scmFileList );
}
else
{
result = new ExportScmResult( "si co", "Failed to export all files!", "", exportSuccess );
}
}
catch ( APIException aex )
{
ExceptionHandler eh = new ExceptionHandler( aex );
getLogger().error( "MKS API Exception: " + eh.getMessage() );
getLogger().debug( eh.getCommand() + " exited with return code " + eh.getExitCode() );
result = new ExportScmResult( eh.getCommand(), eh.getMessage(), "Exit Code: " + eh.getExitCode(), false );
}
return result;
}