mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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 + "'");
|
||||
|
Reference in New Issue
Block a user