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 2011/07/14 17:34:34 UTC
svn commit: r1146761 -
/incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java
Author: rwesten
Date: Thu Jul 14 15:34:34 2011
New Revision: 1146761
URL: http://svn.apache.org/viewvc?rev=1146761&view=rev
Log:
Small update that allows the BundleDataFileProvider to trim whitespace chars from configured data directories.
There would be problems if a configured path would contains such chars.
see also http://markmail.org/message/dajqpgrcz66mjkwx
Modified:
incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java
Modified: incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java?rev=1146761&r1=1146760&r2=1146761&view=diff
==============================================================================
--- incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java (original)
+++ incubator/stanbol/trunk/commons/stanboltools/bundledatafileprovider/src/main/java/org/apache/stanbol/commons/stanboltools/datafileprovider/bundle/impl/DataBundleInstaller.java Thu Jul 14 15:34:34 2011
@@ -135,7 +135,8 @@ public class DataBundleInstaller impleme
BUNDLE_DATAFILES_PRIORITY_HEADER,dataFilesRankingString);
}
} //else no service ranking
- List<String> paths = Arrays.asList(pathsString.trim().split(","));
+ List<String> paths = Arrays.asList(pathsString.replaceAll("\\s", "").split(","));
+
BundleDataFileProvider provider = new BundleDataFileProvider(bundle, paths);
properties.put(Constants.SERVICE_DESCRIPTION, String.format(
"%s for Bundle %s and Paths %s",