if (zeroByteCount > 0 && zeroByteFilesRelaxed) {
state = "no matching files found, " + zeroByteCount + " zero byte files skipped";
}
else
if (zeroByteCount > 0 && zeroByteFilesStrict) {
throw new JobSchedulerException("zero byte file(s) found");
}
else
if (objOptions.force_files.value() == true) {
if (objSourceFileList.List().size() <= 0) {
throw new JobSchedulerException("no (matching) files found");
}
}
else {
state = "no matching files found";
}
rc = (objOptions.force_files.value() == false ? true : !zeroByteFilesRelaxed);
break;
case 1:
String strM = "";
if (zeroByteCount > 0) {
strM = String.format("%1$d files skipped due to zero byte constraint", zeroByteCount);
}
state = "1 file transferred. " + strM;
rc = true;
break;
default:
state = count + " files transferred" + ((zeroByteCount > 0) ? ", " + zeroByteCount + " files skipped due to zero byte constraint" : "");
rc = true;
break;
}
logger.info(state);
return rc;
}
catch (Exception e) {
throw new JobSchedulerException(String.format(EXCEPTION_RAISED, conMethodName, e));
}
}