felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r574244 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Date Mon, 10 Sep 2007 13:23:52 GMT
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)
                 {



Mime
View raw message