[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:
Mark Diggory
2011-07-26 05:04:57 +00:00
parent 21abcf3c90
commit 417d103639

View File

@@ -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("."));