You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by mc...@apache.org on 2008/04/23 13:00:55 UTC

svn commit: r650823 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java

Author: mcculls
Date: Wed Apr 23 04:00:42 2008
New Revision: 650823

URL: http://svn.apache.org/viewvc?rev=650823&view=rev
Log:
FELIX-531: Allow the import package scope to be set for the bundleall goal

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

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java?rev=650823&r1=650822&r2=650823&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java (original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java Wed Apr 23 04:00:42 2008
@@ -29,6 +29,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.Properties;
 import java.util.Set;
 import java.util.jar.Manifest;
 import java.util.regex.Matcher;
@@ -90,6 +91,13 @@
     private List remoteRepositories;
 
     /**
+     * Import-Package to be used when wrapping dependencies.
+     *
+     * @parameter expression="${wrapImportPackage}" default-value="*"
+     */
+    private String wrapImportPackage;
+
+    /**
      * @component
      */
     private ArtifactFactory m_factory;
@@ -331,7 +339,7 @@
         try
         {
             Map instructions = new HashMap();
-            instructions.put( Analyzer.EXPORT_PACKAGE, "*" );
+            instructions.put( Analyzer.IMPORT_PACKAGE, wrapImportPackage );
 
             project.getArtifact().setFile( getFile( artifact ) );
             File outputFile = getOutputFile( artifact );
@@ -347,7 +355,7 @@
                 //                    + " to the same file, try cleaning: " + outputFile );
             }
 
-            Analyzer analyzer = getAnalyzer( project, getClasspath( project ) );
+            Analyzer analyzer = getAnalyzer( project, instructions, new Properties(), getClasspath( project ) );
 
             Jar osgiJar = new Jar( project.getArtifactId(), project.getArtifact().getFile() );