This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
commit f3e1cc10198ad2ee0a3d5399938a25ae7a05d52d Author: Volkan Yazıcı <[email protected]> AuthorDate: Wed Mar 13 14:10:50 2024 +0100 Fix nested mojo defaults I am shocked to learn that `@Parameter` is not taken into account while processing nested mojos[1]. [1] https://the-asf.slack.com/archives/C7Q9JB404/p1710334602272989?thread_ts=1710331574.287829&cid=C7Q9JB404 --- .../java/org/apache/logging/log4j/changelog/maven/TemplateMojo.java | 2 +- .../java/org/apache/logging/log4j/docgen/maven/PathMatcherMojo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log4j-changelog-maven-plugin/src/main/java/org/apache/logging/log4j/changelog/maven/TemplateMojo.java b/log4j-changelog-maven-plugin/src/main/java/org/apache/logging/log4j/changelog/maven/TemplateMojo.java index f55faf4..67fd3da 100644 --- a/log4j-changelog-maven-plugin/src/main/java/org/apache/logging/log4j/changelog/maven/TemplateMojo.java +++ b/log4j-changelog-maven-plugin/src/main/java/org/apache/logging/log4j/changelog/maven/TemplateMojo.java @@ -44,5 +44,5 @@ public final class TemplateMojo { * Indicates if export should fail when the source cannot be found. */ @Parameter(defaultValue = "false") - boolean failIfNotFound; + boolean failIfNotFound = false; } diff --git a/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PathMatcherMojo.java b/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PathMatcherMojo.java index 0ed18d6..db6c152 100644 --- a/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PathMatcherMojo.java +++ b/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PathMatcherMojo.java @@ -47,7 +47,7 @@ public final class PathMatcherMojo { * Indicates if dot-prefixed paths found in {@link #baseDirectory} should be excluded. */ @Parameter(defaultValue = "true") - private boolean dotFilesExcluded; + private boolean dotFilesExcluded = true; /** * The path patterns (e.g., <code>glob:**/*.xml</code>) that will be used to filter paths found in {@link #baseDirectory}.
