} else if (forceProject != null) {
connection = factoryLocator.getConnectionFactory().getConnection(forceProject);
}
// go get selective components and create components from remote retrieve
RetrieveResultExt retrieveResultHandler =
serviceLocator.getPackageRetrieveService().retrieveSelective(connection, projectPackageList, true,
monitor);
if (retrieveResultHandler == null) {
logger.warn("Unable to perform conflict check - retrieve handler null for " + connection.getLogDisplay()
+ " and project package " + projectPackageList);
return;
}
// REVIEWME: do we conclude w/o component conflict check?
if (retrieveResultHandler.hasMessages()) {
StringBuffer strBuff = new StringBuffer("Retrieve result contains problem messages:");
String[] messages = retrieveResultHandler.getMessageHandler().getDisplayMessages();
int msgCnt = 0;
for (String message : messages) {
strBuff.append("\n (").append(++msgCnt).append(") ").append(message);
}
logger.warn(strBuff.toString());
}
if (retrieveResultHandler.getZipFileCount() != projectPackageList.getComponentCount(false)) {
logger.warn("Remote retrieve result count [" + retrieveResultHandler.getZipFileCount()
+ "] does not equal request count [" + projectPackageList.getComponentCount(false) + "].");
}
ProjectPackageList remoteProjectPackageList =
factoryLocator.getProjectPackageFactory().getProjectPackageListInstance(project,
retrieveResultHandler.getZipFile(), retrieveResultHandler.getFileMetadataHandler());
// for each component in each package in build payload, check for conflict
for (ProjectPackage projectPackage : projectPackageList) {
ComponentList componentList = projectPackage.getComponentList();
if (componentList != null && componentList.isNotEmpty()) {