You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2018/11/13 09:00:31 UTC

[sling-slingfeature-maven-plugin] branch master updated: SLING-8100 : Add complete flag to Feature

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new aae6ce2  SLING-8100 : Add complete flag to Feature
aae6ce2 is described below

commit aae6ce23b020a4ebfb52311956d10fd190c6c5ee
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Nov 13 10:00:22 2018 +0100

    SLING-8100 : Add complete flag to Feature
---
 src/main/java/org/apache/sling/feature/maven/mojos/Aggregate.java | 8 +++++++-
 .../apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java   | 3 +++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/Aggregate.java b/src/main/java/org/apache/sling/feature/maven/mojos/Aggregate.java
index 77459a1..fb2ad91 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/Aggregate.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/Aggregate.java
@@ -32,6 +32,11 @@ public class Aggregate extends FeatureSelectionConfig {
     public boolean markAsFinal = false;
 
     /**
+     * If this is set to {@code true} the feature is marked as complete.
+     */
+    public boolean markAsComplete = false;
+
+    /**
      * Optional title for the feature
      */
     public String title;
@@ -49,7 +54,8 @@ public class Aggregate extends FeatureSelectionConfig {
     public String toString() {
         return "Aggregate [filesIncludes=" + getIncludes() + ", filesExcludes=" + getExcludes() + ", includeArtifact="
                 + getArtifacts() + ", includeClassifier=" + getClassifiers() + ", classifier=" + classifier
-                + ", markAsFinal=" + markAsFinal + ", title=" + title + ", description=" + description + ", variables="
+                + ", markAsFinal=" + markAsFinal + ", markAsComplete=" + markAsComplete + ", title=" + title
+                + ", description=" + description + ", variables="
                 + variables + ", frameworkProperties=" + frameworkProperties + "]";
     }
 }
\ No newline at end of file
diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java b/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
index ef50a1d..21c0273 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java
@@ -148,6 +148,9 @@ public class AggregateFeaturesMojo extends AbstractIncludingFeatureMojo {
             if (aggregate.markAsFinal) {
                 result.setFinal(true);
             }
+            if (aggregate.markAsComplete) {
+                result.setComplete(true);
+            }
             if (aggregate.title != null) {
                 result.setTitle(aggregate.title);
             }