Skip to content

Commit

Permalink
Improved determination of configuration folder path.
Browse files Browse the repository at this point in the history
  • Loading branch information
tHerrmann committed Jan 2, 2014
1 parent 10628b2 commit ba7db64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/org/opencms/configuration/TestConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

package org.opencms.configuration;

import org.opencms.file.CmsResource;
import org.opencms.i18n.CmsEncoder;
import org.opencms.test.OpenCmsTestCase;
import org.opencms.test.OpenCmsTestProperties;
Expand Down Expand Up @@ -68,7 +69,7 @@ public TestConfiguration(String arg0) {
public void testLoadXmlConfiguration() throws Exception {

// get the file name of the input resource
String inputFile = OpenCmsTestProperties.getResourcePathFromClassloader("org/opencms/configuration/");
String inputFile = CmsResource.getParentFolder(OpenCmsTestProperties.getResourcePathFromClassloader("org/opencms/configuration/opencms.xml"));

// generate the configuration manager
CmsConfigurationManager manager = new CmsConfigurationManager(inputFile);
Expand Down

0 comments on commit ba7db64

Please sign in to comment.