long startTime = System.currentTimeMillis() + _ctx.getTimeDelta();
_ctx.setStartTime(startTime);
long zipSize = 0;
for (int i = 0; i < request.length; i++) {
Zipper z = new Zipper(null, 0L);
// init zipper
initZipper(request[i], z);
// generate inventory for this request
if (_ctx.isProcessInventory()) {
processInventory(request[i]);
}
if (isModified(request[i]) || z.hasAlwaysInclude()) {
_logger.log(Level.FINE, "synchronization.req_mod_file_info",
request[i].getFileName());
// set exclude list for unassociated applications
if (request[i].isExclude()) {
setExcludeList(request[i], z);
}
// add the exclude regular expression for this request
List ePattern = request[i].getExcludePatternList();
z.addToExcludePatternList(ePattern);
// sets the shallow copy flag
z.setShallowCopyEnabled(request[i].isShallowCopyEnabled());
// add the include regular expression for this request
// include patterns has precidence over exclude patterns
List iPattern = request[i].getIncludePatternList();
z.addToIncludePatternList(iPattern);
if (request[i].getTimestampType()
== SynchronizationRequest.TIMESTAMP_MODIFIED_SINCE) {
z.setLastModifiedTime(request[i].getTimestamp());
} else {
z.setLastModifiedTime(0L);
}
// add the file or directory to zipper
file = request[i].getFile();
addFileToZip(file, z, request[i]);
results[i] = request[i];
zipSize += z.getZipSize();
} else {
_logger.log(Level.FINE,
"synchronization.req_not_mod_file_info",
request[i].getFileName());