mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
75087: Merged WAT2 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 73975: Better handling/logging of ModuleDetails version errors git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@75415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -133,9 +133,16 @@ public class ModuleDetailsImpl implements ModuleDetails
|
||||
missingProperties.add(PROP_VERSION);
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
version = new VersionNumber(trimmedProperties.getProperty(PROP_VERSION));
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw new AlfrescoRuntimeException("Unable to parse version information: " + trimmedProperties.getProperty(PROP_VERSION), e);
|
||||
}
|
||||
}
|
||||
// TITLE
|
||||
title = trimmedProperties.getProperty(PROP_TITLE);
|
||||
if (title == null) { missingProperties.add(PROP_TITLE); }
|
||||
|
@@ -238,6 +238,7 @@ public class ModuleServiceImpl implements ApplicationContextAware, ModuleService
|
||||
}
|
||||
catch (Throwable e)
|
||||
{
|
||||
logger.error("Unable to use module information.",e);
|
||||
throw AlfrescoRuntimeException.create(e, ERR_UNABLE_TO_OPEN_MODULE_PROPETIES, resource);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user