commit | ddfc8c9f758a4ee6fa75a60f8977638c340903e3 | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Mon Sep 10 13:23:52 2007 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Mon Sep 10 13:23:52 2007 +0000 |
tree | d22bbfd68a9365124c4666ce4a6014b59caca939 | |
parent | d8b3e18164b507eac35488c96496522171c61bf6 [diff] |
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. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@574244 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java index f3468e7..a2236a5 100644 --- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java +++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -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) {