FELIX-3642 : Change default for generating descriptor files to generate single file for each component

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1379350 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/maven-scr-plugin/src/main/java/org/apache/felix/scrplugin/mojo/SCRDescriptorMojo.java b/scrplugin/maven-scr-plugin/src/main/java/org/apache/felix/scrplugin/mojo/SCRDescriptorMojo.java
index 19270cd..21fe5b4 100644
--- a/scrplugin/maven-scr-plugin/src/main/java/org/apache/felix/scrplugin/mojo/SCRDescriptorMojo.java
+++ b/scrplugin/maven-scr-plugin/src/main/java/org/apache/felix/scrplugin/mojo/SCRDescriptorMojo.java
@@ -128,7 +128,14 @@
      *
      * @parameter default-value="false"
      */
-    protected boolean strictMode;
+    private boolean strictMode;
+
+    /**
+     * If set to false, a single descriptor will be created.
+     *
+     * @parameter default-value="true"
+     */
+    private boolean generateSeparateDescriptors;
 
     /**
      * The comma separated list of tokens to include when processing sources.
@@ -201,6 +208,8 @@
         options.setStrictMode(strictMode);
         options.setProperties(properties);
         options.setSpecVersion(SpecVersion.fromName(specVersion));
+        options.setGenerateSeparateDescriptors(this.generateSeparateDescriptors);
+
         if ( specVersion != null && options.getSpecVersion() == null ) {
             throw new MojoExecutionException("Unknown spec version specified: " + specVersion);
         }