You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/12/08 14:12:42 UTC
[09/16] camel git commit: CAMEL-10559: maven plugin to validate using
the route parser. Donated from fabric8 project.
CAMEL-10559: maven plugin to validate using the route parser. Donated from fabric8 project.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/11639983
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/11639983
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/11639983
Branch: refs/heads/master
Commit: 1163998329ee1f26dc0236c7bf962b7d960551a5
Parents: 99eafcb
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Dec 8 14:56:12 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Dec 8 14:56:12 2016 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/camel/maven/ValidateMojo.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/11639983/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java
index 3a63cdc..9d41a9d 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/ValidateMojo.java
@@ -298,6 +298,7 @@ public class ValidateMojo extends AbstractExecMojo {
int unknownComponents = 0;
int incapableErrors = 0;
for (CamelEndpointDetails detail : endpoints) {
+ getLog().debug("Validating endpoint: " + detail.getEndpointUri());
EndpointValidationResult result = catalog.validateEndpointProperties(detail.getEndpointUri(), ignoreLenientProperties);
boolean ok = result.isSuccess();
@@ -399,6 +400,7 @@ public class ValidateMojo extends AbstractExecMojo {
int simpleErrors = 0;
for (CamelSimpleExpressionDetails detail : simpleExpressions) {
+ getLog().debug("Validating simple expression: " + detail.getSimple());
SimpleValidationResult result = catalog.validateSimpleExpression(detail.getSimple());
if (!result.isSuccess()) {
simpleErrors++;