You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/04/06 10:55:16 UTC

camel git commit: Camel catalog - Include the adoc files. Fixed a little bug and excluded hidden directory

Repository: camel
Updated Branches:
  refs/heads/master 1b9a53fba -> cdbe9fde5


Camel catalog - Include the adoc files. Fixed a little bug and excluded hidden directory


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cdbe9fde
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cdbe9fde
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cdbe9fde

Branch: refs/heads/master
Commit: cdbe9fde5523faa218e24c8ed2781267078b9caf
Parents: 1b9a53f
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Apr 6 10:53:15 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Apr 6 10:54:45 2016 +0200

----------------------------------------------------------------------
 .../org/apache/camel/maven/packaging/PrepareCatalogMojo.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cdbe9fde/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java
----------------------------------------------------------------------
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 924cdb1..68a3685 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
@@ -701,14 +701,14 @@ public class PrepareCatalogMojo extends AbstractMojo {
             File[] components = componentsDir.listFiles();
             if (components != null) {
                 for (File dir : components) {
-                    if (dir.isDirectory() && !"target".equals(dir.getName())) {
+                    if (dir.isDirectory() && !"target".equals(dir.getName()) && !dir.getName().startsWith(".")) {
                         File target = new File(dir, "src/main/docs");
 
                         int before = adocFiles.size();
                         findAsciiDocFilesRecursive(target, adocFiles, new CamelAsciiDocFileFilter());
                         int after = adocFiles.size();
 
-                        if (before != after) {
+                        if (before == after) {
                             missingAdocFiles.add(dir);
                         }
                     }