try {
DeploymentData deploymentData = new DeploymentData(deploymentProps, baseDir, deployDir, allFiles,
allRawFilesToReplace, allArchives, allArchiveReplacePatterns, templateEngine, this.ignorePattern,
allArchivesExploded);
Deployer deployer = new Deployer(deploymentData);
DeployDifferences diffs = getProject().getDeployDifferences();
// we only want to emit audit trail when something is really going to happen on disk; don't log if doing a dry run
if (!dryRun) {
getProject().auditLog(AuditStatus.SUCCESS, "Deployer Started", "The deployer has started its work",
null, null);
}
if (revert) {
deployer.redeployAndRestoreBackupFiles(diffs, clean, dryRun);
} else {
deployer.deploy(diffs, clean, dryRun);
}
HandoverTarget handoverTarget = getProject().getHandoverTarget();
if (handoverTarget != null) {
for (HasHandover hasHandoverReference : contentToHandover) {