diff --git a/source/java/org/alfresco/repo/module/tool/ModuleManagementTool.java b/source/java/org/alfresco/repo/module/tool/ModuleManagementTool.java index 08db070b63..57fb147e35 100644 --- a/source/java/org/alfresco/repo/module/tool/ModuleManagementTool.java +++ b/source/java/org/alfresco/repo/module/tool/ModuleManagementTool.java @@ -392,16 +392,17 @@ public class ModuleManagementTool implements LogOutput mappingTarget = mappingTarget.trim(); //trim whitespace // Run throught the files one by one figuring out what we are going to do during the copy - calculateCopyToWar(ampFileLocation, warFileLocation, mappingSource, mappingTarget, installedFiles, preview, forceInstall); + calculateCopyToWar(ampFileLocation, warFileLocation, mappingSource, mappingTarget, installedFiles, preview, forceInstall); - // Get a reference to the source folder (if it isn't present don't do anything) - TFile source = new TFile(ampFileLocation + "/" + mappingSource); - if (source != null && source.list() != null) - { - // Add to the list of directory changes so we can implement the changes later. - String sourceDir = ampFileLocation + mappingSource; - String destinationDir = warFileLocation + mappingTarget; - dirChanges.put(sourceDir, destinationDir); + // Get a reference to the source folder (if it isn't present don't do anything) + TFile source = new TFile(ampFileLocation + "/" + mappingSource); + if (source != null && source.list() != null) + { + // Add to the list of directory changes so we can implement the changes later. + String sourceDir = ampFileLocation + mappingSource; + String destinationDir = warFileLocation + mappingTarget; + dirChanges.put(sourceDir, destinationDir); + } } }