You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/02/19 12:42:21 UTC
svn commit: r1447686 -
/stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java
Author: rwesten
Date: Tue Feb 19 11:42:21 2013
New Revision: 1447686
URL: http://svn.apache.org/r1447686
Log:
STANBOL-945: the ConfigUtils#prepairCopy(..) method now converts parsed contexts to use system specific file separators
Modified:
stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java
Modified: stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java?rev=1447686&r1=1447685&r2=1447686&view=diff
==============================================================================
--- stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java (original)
+++ stanbol/trunk/commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/ConfigUtils.java Tue Feb 19 11:42:21 2013
@@ -386,6 +386,7 @@ public final class ConfigUtils {
* found in the parsed resource this method returns <code>null</code>
*/
private static File prepairCopy(String resource, File targetDir, String context) {
+ context = FilenameUtils.separatorsToSystem(context);
if (!(context.charAt(context.length() - 1) == File.separatorChar)) {
context = context + File.separatorChar;
}