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 2019/06/14 08:18:49 UTC

[sling-slingfeature-maven-plugin] branch master updated: SLING-8491 : Selection of feature without classifier does not work

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 5a7f473  SLING-8491 : Selection of feature without classifier does not work
5a7f473 is described below

commit 5a7f473e871c1a25ad07f20f6f965dcc8cc38189
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jun 14 10:18:41 2019 +0200

    SLING-8491 : Selection of feature without classifier does not work
---
 .../org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java b/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
index 253cc72..430b975 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/FeatureSelectionConfig.java
@@ -63,7 +63,7 @@ public class FeatureSelectionConfig {
     }
 
     public void setIncludeClassifier(final String classifier) {
-        selections.add(new Selection(SelectionType.AGGREGATE_CLASSIFIER, classifier));
+        selections.add(new Selection(SelectionType.AGGREGATE_CLASSIFIER, ":".equals(classifier) ? "" : classifier));
     }
 
     public List<String> getFilesExcludes() {