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

davidb 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 c857ba5  SLING-9443 Access Feature Model Aggregates as Files during 
Maven Build
     new 6add325  Merge pull request #52 from bosschaert/SLING-9443
c857ba5 is described below

commit c857ba5d00da3cedcfa057ad2911d96803fb8183
Author: David Bosschaert <[email protected]>
AuthorDate: Wed May 13 11:14:56 2020 +0100

    SLING-9443 Access Feature Model Aggregates as Files during Maven Build
---
 .../org/apache/sling/feature/maven/mojos/AggregateFeaturesMojo.java    | 3 +++
 1 file changed, 3 insertions(+)

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 82c5d71..9166ce0 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
@@ -147,6 +147,9 @@ public class AggregateFeaturesMojo extends 
AbstractIncludingFeatureMojo {
             if (aggregate.vendor != null) {
                 result.setVendor(aggregate.vendor);
             }
+            if (aggregate.attach) {
+                ProjectHelper.createTmpFeatureFile(project, result);
+            }
 
             ProjectHelper.setFeatureInfo(project, result);
 

Reply via email to