throw new ScmException( "'stateDate' is not allowed to occur after 'endDate'!" );
}
getLogger().info(
"Attempting to obtain change log for date range: '" + Sandbox.RLOG_DATEFORMAT.format( startDate ) + "' to '"
+ Sandbox.RLOG_DATEFORMAT.format( endDate ) + "'" );
ChangeLogScmResult result;
IntegrityScmProviderRepository iRepo = (IntegrityScmProviderRepository) repository;
try
{
result = new ChangeLogScmResult( iRepo.getSandbox().getChangeLog( startDate, endDate ),
new ScmResult( "si rlog", "", "", true ) );
}
catch ( APIException aex )
{
ExceptionHandler eh = new ExceptionHandler( aex );
getLogger().error( "MKS API Exception: " + eh.getMessage() );
getLogger().info( eh.getCommand() + " exited with return code " + eh.getExitCode() );
result =
new ChangeLogScmResult( eh.getCommand(), eh.getMessage(), "Exit Code: " + eh.getExitCode(), false );
}
return result;
}