commit | 35d800e25eca3eb8c284f26cee93d0c09ece350c | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Wed Mar 28 15:12:42 2007 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Wed Mar 28 15:12:42 2007 +0000 |
tree | 6f2309913b2e724c09a0f601162f87a635ea1d16 | |
parent | f1d1542decb533272a9029969e3c770793390b08 [diff] |
Applied a modified version of the patch from FELIX-218 to support BND directives. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@523358 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java index af6a425..b6bacfe 100644 --- a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java +++ b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
@@ -128,8 +128,16 @@ properties.put("project.build.directory", buildDirectory ); properties.put("project.build.outputdirectory", outputDirectory ); - properties.putAll(instructions); - + Iterator i = instructions.entrySet().iterator(); + while (i.hasNext()) { + Map.Entry e = (Map.Entry)i.next(); + String key = (String)e.getKey(); + if (key.startsWith("_")) { + key = "-"+key.substring(1); + } + properties.put(key, e.getValue()); + } + Builder builder = new Builder(); builder.setBase(baseDir); Jar[] cp = getClasspath();