felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mccu...@apache.org
Subject svn commit: r616711 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Date Wed, 30 Jan 2008 10:16:21 GMT
Author: mcculls
Date: Wed Jan 30 02:16:20 2008
New Revision: 616711

URL: http://svn.apache.org/viewvc?rev=616711&view=rev
Log:
FELIX-476: Improve default Export-Package setting

Modified:
    felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=616711&r1=616710&r2=616711&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
(original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Wed Jan 30 02:16:20 2008
@@ -340,8 +340,10 @@
 
         if ( !properties.containsKey( Analyzer.PRIVATE_PACKAGE ) )
         {
-            String bsn = currentProject.getGroupId() + "." + currentProject.getArtifactId();
-            properties.put( Analyzer.EXPORT_PACKAGE, bsn + ".*" );
+            String bsn = properties.getProperty( Analyzer.BUNDLE_SYMBOLICNAME );
+            String namespace = bsn.replaceAll( "\\W", "." );
+
+            properties.put( Analyzer.EXPORT_PACKAGE, namespace + ".*" );
         }
 
         // update BND instructions to embed selected Maven dependencies



Mime
View raw message