felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r523358 - /incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
Date Wed, 28 Mar 2007 15:12:46 GMT
Author: rickhall
Date: Wed Mar 28 08:12:42 2007
New Revision: 523358

URL: http://svn.apache.org/viewvc?view=rev&rev=523358
Log:
Applied a modified version of the patch from FELIX-218 to support BND 
directives.

Modified:
    incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java

Modified: incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java?view=diff&rev=523358&r1=523357&r2=523358
==============================================================================
--- incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
(original)
+++ incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
Wed Mar 28 08:12:42 2007
@@ -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();



Mime
View raw message