felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1703961 - in /felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin: BundlePlugin.java ScrPlugin.java
Date Sat, 19 Sep 2015 09:01:48 GMT
Author: cziegeler
Date: Sat Sep 19 09:01:48 2015
New Revision: 1703961

URL: http://svn.apache.org/viewvc?rev=1703961&view=rev
Log:
FELIX-5047 : Disable bnd ScrPlugin by default

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

Modified: felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=1703961&r1=1703960&r2=1703961&view=diff
==============================================================================
--- felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
(original)
+++ felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
Sat Sep 19 09:01:48 2015
@@ -27,16 +27,24 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.lang.reflect.Array;
 import java.lang.reflect.Method;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
+import java.util.TreeMap;
 import java.util.jar.Attributes;
 import java.util.jar.Manifest;
 
-import aQute.bnd.header.OSGiHeader;
-import aQute.bnd.header.Parameters;
-import aQute.bnd.osgi.Instruction;
-import aQute.bnd.osgi.Instructions;
-import aQute.lib.collections.ExtList;
-import aQute.libg.generics.Create;
 import org.apache.maven.archiver.ManifestSection;
 import org.apache.maven.archiver.MavenArchiveConfiguration;
 import org.apache.maven.archiver.MavenArchiver;
@@ -70,16 +78,22 @@ import org.codehaus.plexus.util.Property
 import org.codehaus.plexus.util.StringUtils;
 
 import aQute.bnd.header.Attrs;
+import aQute.bnd.header.OSGiHeader;
+import aQute.bnd.header.Parameters;
 import aQute.bnd.osgi.Analyzer;
 import aQute.bnd.osgi.Builder;
 import aQute.bnd.osgi.Constants;
 import aQute.bnd.osgi.Descriptors.PackageRef;
 import aQute.bnd.osgi.EmbeddedResource;
 import aQute.bnd.osgi.FileResource;
+import aQute.bnd.osgi.Instruction;
+import aQute.bnd.osgi.Instructions;
 import aQute.bnd.osgi.Jar;
 import aQute.bnd.osgi.Packages;
 import aQute.bnd.osgi.Processor;
+import aQute.lib.collections.ExtList;
 import aQute.lib.spring.SpringXMLType;
+import aQute.libg.generics.Create;
 
 
 /**
@@ -1502,8 +1516,7 @@ public class BundlePlugin extends Abstra
         properties.put( "classifier", classifier == null ? "" : classifier );
 
         // Add default plugins
-        header( properties, Analyzer.PLUGIN, ScrPlugin.class.getName() + ","
-                                           + BlueprintPlugin.class.getName() + ","
+        header( properties, Analyzer.PLUGIN, BlueprintPlugin.class.getName() + ","
                                            + SpringXMLType.class.getName() );
 
         return properties;
@@ -1667,7 +1680,7 @@ public class BundlePlugin extends Abstra
                 scanner.setBasedir( sourcePath );
                 if ( resource.getIncludes() != null && !resource.getIncludes().isEmpty()
)
                 {
-                    scanner.setIncludes( ( String[] ) resource.getIncludes().toArray( EMPTY_STRING_ARRAY
) );
+                    scanner.setIncludes( resource.getIncludes().toArray( EMPTY_STRING_ARRAY
) );
                 }
                 else
                 {
@@ -1676,7 +1689,7 @@ public class BundlePlugin extends Abstra
 
                 if ( resource.getExcludes() != null && !resource.getExcludes().isEmpty()
)
                 {
-                    scanner.setExcludes( ( String[] ) resource.getExcludes().toArray( EMPTY_STRING_ARRAY
) );
+                    scanner.setExcludes( resource.getExcludes().toArray( EMPTY_STRING_ARRAY
) );
                 }
 
                 scanner.addDefaultExcludes();

Modified: felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/ScrPlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/ScrPlugin.java?rev=1703961&r1=1703960&r2=1703961&view=diff
==============================================================================
--- felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/ScrPlugin.java
(original)
+++ felix/trunk/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/ScrPlugin.java
Sat Sep 19 09:01:48 2015
@@ -41,7 +41,11 @@ import aQute.bnd.osgi.Resource;
 import aQute.bnd.service.AnalyzerPlugin;
 import aQute.libg.generics.Create;
 
-
+/**
+ * Create capabilities for DS components
+ * @deprecated bnd generates these as well.
+ */
+@Deprecated
 public class ScrPlugin implements AnalyzerPlugin
 {
 



Mime
View raw message