[FELIX-4512] Add a supportedProjectTypes for baseline plugin

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1596857 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
index 43027be..d005386 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/baseline/AbstractBaselinePlugin.java
@@ -145,6 +145,13 @@
      */
     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 @@
             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();