patch 'r704859: Using \ characters will corrupt the path when used as (Spring expanded) variables'
@@ -63,6 +63,10 @@ | ||
63 | 63 | public SpringComponentManager(String[] bootConfigs, String[] appConfigs, |
64 | 64 | ServletContext servletContext, String appRoot) |
65 | 65 | { |
66 | + // Using \ characters will corrupt the path when used as (Spring expanded) variables | |
67 | + // making sure default (Java) path separators are used which somehow always work, even on Windows platform. | |
68 | + appRoot = appRoot.replace('\\', '/'); | |
69 | + | |
66 | 70 | File appRootDir = new File(appRoot); |
67 | 71 | System.setProperty(JetspeedEngineConstants.APPLICATION_ROOT_KEY, |
68 | 72 | appRootDir.getAbsolutePath()); |
@@ -105,6 +109,10 @@ | ||
105 | 109 | public SpringComponentManager(String[] bootConfigs, String[] appConfigs, |
106 | 110 | String appRoot) |
107 | 111 | { |
112 | + // Using \ characters will corrupt the path when used as (Spring expanded) variables | |
113 | + // making sure default (Java) path separators are used which somehow always work, even on Windows platform. | |
114 | + appRoot = appRoot.replace('\\', '/'); | |
115 | + | |
108 | 116 | PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer(); |
109 | 117 | Properties p = new Properties(); |
110 | 118 | // p.setProperty(APPLICATION_ROOT_KEY,appRootDir.getAbsolutePath()); |