You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2007/09/10 15:23:52 UTC
svn commit: r574244 -
/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Author: cziegeler
Date: Mon Sep 10 06:23:52 2007
New Revision: 574244
URL: http://svn.apache.org/viewvc?rev=574244&view=rev
Log:
The bnd lib expects resource paths with a '/' as the separator. If the plugin is run on Windows, a '\' is used as separator! This workaround/fix converts the slashes.
Modified:
felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=574244&r1=574243&r2=574244&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java (original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Mon Sep 10 06:23:52 2007
@@ -544,6 +544,12 @@
{
path = path.substring(basePath.length() + 1);
}
+ // replace windows backslash with a slash
+ // this is a workaround for a problem with bnd 0.0.189
+ if ( File.separatorChar != '/' )
+ {
+ path = path.replace(File.separatorChar, '/');
+ }
if (targetPath != null)
{