camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: Camel catalog should report missing javadoc option for components also
Date Thu, 12 Feb 2015 10:30:26 GMT
Repository: camel
Updated Branches:
  refs/heads/master 43bf93b8e -> 540b6a286


Camel catalog should report missing javadoc option for components also


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

Branch: refs/heads/master
Commit: 540b6a2867c8a616a69045ed231864f8bed45765
Parents: 43bf93b
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Feb 12 11:30:52 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Feb 12 11:30:52 2015 +0100

----------------------------------------------------------------------
 .../camel/maven/packaging/PrepareCatalogMojo.java     | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/540b6a28/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 4ad00c5..5769bc0 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
@@ -329,8 +329,18 @@ public class PrepareCatalogMojo extends AbstractMojo {
                     missingUriPaths.add(file);
                 }
 
-                // check all the properties if they have description
-                List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("properties",
text, true);
+                // check all the component properties if they have description
+                List<Map<String, String>> rows = JSonSchemaHelper.parseJsonSchema("componentProperties",
text, true);
+                for (Map<String, String> row : rows) {
+                    String doc = row.get("description");
+                    if (doc == null || doc.isEmpty()) {
+                        missingJavaDoc.add(file);
+                        break;
+                    }
+                }
+
+                // check all the endpoint properties if they have description
+                rows = JSonSchemaHelper.parseJsonSchema("properties", text, true);
                 for (Map<String, String> row : rows) {
                     String doc = row.get("description");
                     if (doc == null || doc.isEmpty()) {


Mime
View raw message