This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new a13e257 CAMEL-13115: camel3 - build system - camel-catalog should not warn for missing doc for inactive modules a13e257 is described below commit a13e2572b3fc6294aa7cd0113d49e5987b78859c Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Jan 23 20:56:43 2019 +0100 CAMEL-13115: camel3 - build system - camel-catalog should not warn for missing doc for inactive modules --- .../java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java index 476e6d9..82f6da5 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java @@ -996,6 +996,13 @@ public class PrepareCatalogMojo extends AbstractMojo { target = new File(dir, "camel-servicenow-component/src/main/docs"); } else if ("camel-fhir".equals(dir.getName())) { target = new File(dir, "camel-fhir-component/src/main/docs"); + } else { + // this module must be active with a source folder + File src = new File(dir, "src"); + boolean active = src.isDirectory() && src.exists(); + if (!active) { + continue; + } } int before = adocFiles.size();