deployer.redeployAndRestoreBackupFiles(diffs, clean, dryRun);
} else {
deployer.deploy(diffs, clean, dryRun);
}
HandoverTarget handoverTarget = getProject().getHandoverTarget();
if (handoverTarget != null) {
for (HasHandover hasHandoverReference : contentToHandover) {
Handover handoverTag = hasHandoverReference.getHandover();
File source = getFileSource(hasHandoverReference, downloadedFilesToHandover, templateEngine);
FileInputStream contentStream = new FileInputStream(source);
HandoverInfo.Builder builder = new HandoverInfo.Builder();
builder.setContent(contentStream);
builder.setFilename(source.getName());
builder.setAction(handoverTag.getAction());
builder.setParams(handoverTag.getHandoverParams());
builder.setRevert(revert);
HandoverInfo handoverInfo = builder.createHandoverInfo();
if (!dryRun) {
try {
boolean handoverSuccess = handoverTarget.handoverContent(handoverInfo);
String informationMessage = "Source: " + source.getName() + ", " + handoverTag;
if (handoverSuccess) {
getProject().auditLog(AuditStatus.INFO, "Handover",
"Handover target reported success", informationMessage, null);
} else {