rCtx.setZipFile(zip);
// turn off the process inventory
rCtx.setProcessInventory(false);
ZipProcessor zProcessor = new ZipProcessor(rCtx);
// sets the delete flag to false
zProcessor.setDeleteZipOnExitFlag(false);
// constructs the zip
zProcessor.process();
} catch (Exception ex) {
String msg = _localStrMgr.getString("createRepositoryZipFailed",
target);
throw new SynchronizationException(msg, ex);