Added a test case and fix for ALF-16060, now creates the module directory if it doesn't exist

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2012-10-25 16:12:28 +00:00
parent 9570eb685b
commit 4b4b1f72a7
3 changed files with 13 additions and 2 deletions

View File

@@ -240,6 +240,13 @@ public class ModuleManagementTool implements LogOutput
// Try to find an installed module by the ID
ModuleDetails installedModuleDetails = warHelper.getModuleDetailsOrAlias(warFile, installingModuleDetails);
//Check module directory exists
TFile moduleInstallDirectory = new TFile(warFileLocation + WarHelper.MODULE_NAMESPACE_DIR+ "/" + installingId);
if (preview == false && moduleInstallDirectory.exists() == false)
{
moduleInstallDirectory.mkdir();
}
uninstallIfNecessary(warFileLocation, installedModuleDetails, preview, forceInstall, installingVersion);
outputVerboseMessage("Adding files relating to version '" + installingVersion + "' of module '" + installingId + "'");