felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1596857 - /felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
Date Thu, 22 May 2014 13:20:16 GMT
Author: gnodet
Date: Thu May 22 13:20:16 2014
New Revision: 1596857

URL: http://svn.apache.org/r1596857
Log:
[FELIX-4512] Add a supportedProjectTypes for baseline plugin

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

Modified: felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java?rev=1596857&r1=1596856&r2=1596857&view=diff
==============================================================================
--- felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
(original)
+++ felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
Thu May 22 13:20:16 2014
@@ -145,6 +145,13 @@ abstract class AbstractBaselinePlugin
      */
     private String[] filters;
 
+    /**
+     * Project types which this plugin supports.
+     *
+     * @parameter
+     */
+    protected List supportedProjectTypes = Arrays.asList( new String[] { "jar", "bundle"
} );
+
     public final void execute()
         throws MojoExecutionException, MojoFailureException
     {
@@ -154,6 +161,12 @@ abstract class AbstractBaselinePlugin
             return;
         }
 
+        if ( !supportedProjectTypes.contains( project.getArtifact().getType() ) )
+        {
+            getLog().info("Skipping Baseline (project type " + project.getArtifact().getType()
+ " not supported)");
+            return;
+        }
+
         // get the bundles that have to be compared
 
         final Jar currentBundle = getCurrentBundle();



Mime
View raw message