FELIX-400: map individual resources to correct locations
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@596053 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 209aff5..9091f29 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -623,7 +623,8 @@
for ( Iterator j = includedFiles.iterator(); j.hasNext(); )
{
- String path = sourcePath + '/' + j.next();
+ String name = (String) j.next();
+ String path = sourcePath + '/' + name;
// make relative to project
if (path.startsWith(basePath))
@@ -645,9 +646,11 @@
path = path.replace(File.separatorChar, '/');
}
+ // copy to correct place
+ path = name + '=' + path;
if (targetPath != null)
{
- path = targetPath + '=' + path;
+ path = targetPath + '/' + path;
}
if (resourcePaths.length() > 0)