mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
[DSRV-16] The configuration service doesn't load in any module configuration files on windows ( provided by Kevin Van de Velde)
git-svn-id: http://scm.dspace.org/svn/repo/modules/dspace-services/trunk@6503 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -384,10 +384,10 @@ public final class DSpaceConfigurationService implements ConfigurationService {
|
||||
}
|
||||
//Attempt to load up all the config files in the modules directory
|
||||
try{
|
||||
File modulesDirectory = new File(homePath + File.separator + DSPACE_MODULES_CONFIG_PATH);
|
||||
File modulesDirectory = new File(homePath + File.separator + DSPACE_MODULES_CONFIG_PATH + File.separator);
|
||||
if(modulesDirectory.exists()){
|
||||
try{
|
||||
Resource[] resources = new PathMatchingResourcePatternResolver().getResources("file:" + modulesDirectory.getAbsolutePath() + File.separator + "*" + DOT_CONFIG);
|
||||
Resource[] resources = new PathMatchingResourcePatternResolver().getResources(modulesDirectory.toURI().toURL().toString() + "*" + DOT_CONFIG);
|
||||
if(resources != null){
|
||||
for(Resource resource : resources){
|
||||
String prefix = resource.getFilename().substring(0, resource.getFilename().lastIndexOf("."));
|
||||
|
Reference in New Issue
Block a user