felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r470846 - /incubator/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
Date Fri, 03 Nov 2006 15:07:17 GMT
Author: rickhall
Date: Fri Nov  3 07:07:17 2006
New Revision: 470846

URL: http://svn.apache.org/viewvc?view=rev&rev=470846
Log:
Modified the plugin so that default value for Export-Package is empty if
Private-Package is specified.

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=470846&r1=470845&r2=470846
==============================================================================
--- 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
Fri Nov  3 07:07:17 2006
@@ -90,7 +90,9 @@
    Properties properties = new Properties();
    properties.put(Analyzer.BUNDLE_SYMBOLICNAME, bsn);
    properties.put(Analyzer.IMPORT_PACKAGE, "*");
-   properties.put(Analyzer.EXPORT_PACKAGE, bsn + ".*");
+   if (!instructions.containsKey(Analyzer.PRIVATE_PACKAGE)) {
+     properties.put(Analyzer.EXPORT_PACKAGE, bsn + ".*");
+   }
    String version = project.getVersion();
    Pattern P_VERSION = Pattern.compile("([0-9]+(\\.[0-9])*)-(.*)");
    Matcher m = P_VERSION.matcher(version);



Mime
View raw message