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 3b493c1  SLING-9093 : Add info mojo to generate a file with exported 
packages
3b493c1 is described below

commit 3b493c1014868fc352534adabab632d9c249f766
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Feb 20 12:32:03 2020 +0100

    SLING-9093 : Add info mojo to generate a file with exported packages
---
 src/main/java/org/apache/sling/feature/maven/mojos/InfoMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/InfoMojo.java 
b/src/main/java/org/apache/sling/feature/maven/mojos/InfoMojo.java
index 585f8bd..c6c57c7 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/InfoMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/InfoMojo.java
@@ -81,7 +81,7 @@ public class InfoMojo extends AbstractIncludingFeatureMojo {
         // setup scanner
         final Scanner scanner = setupScanner();
 
-        if (isStandalone) {
+        if (isStandalone || featureFile != null) {
             final Feature feature = readFeature();
             // wired code to get the current directory, but its needed
             process(scanner, feature, 
Paths.get(".").toAbsolutePath().getParent().toFile());

Reply via email to