You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2015/06/22 11:53:53 UTC
camel git commit: While validating the documentation,
the syntax check is only aimed for the Components.
Repository: camel
Updated Branches:
refs/heads/master 1ba91cba7 -> e89d5c605
While validating the documentation, the syntax check is only aimed for the Components.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e89d5c60
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e89d5c60
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e89d5c60
Branch: refs/heads/master
Commit: e89d5c6052b144e38e0a0a3595b06cf5b35e9cf3
Parents: 1ba91cb
Author: Babak Vahdat <bv...@apache.org>
Authored: Mon Jun 22 11:53:31 2015 +0200
Committer: Babak Vahdat <bv...@apache.org>
Committed: Mon Jun 22 11:53:31 2015 +0200
----------------------------------------------------------------------
.../apache/camel/maven/packaging/ValidateComponentMojo.java | 1 -
.../java/org/apache/camel/maven/packaging/ValidateHelper.java | 6 +++++-
2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/e89d5c60/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java
index e1fa228..2c6b2c1 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateComponentMojo.java
@@ -92,7 +92,6 @@ public class ValidateComponentMojo extends AbstractMojo {
* @throws org.apache.maven.plugin.MojoFailureException something bad happened...
*/
public void execute() throws MojoExecutionException, MojoFailureException {
-
if (!validate) {
getLog().info("Validation disabled");
} else {
http://git-wip-us.apache.org/repos/asf/camel/blob/e89d5c60/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateHelper.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateHelper.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateHelper.java
index ac52996..e86a4f4 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateHelper.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ValidateHelper.java
@@ -77,13 +77,17 @@ public final class ValidateHelper {
syntax = true;
}
}
+
if (!label) {
errorDetail.setMissingLabel(true);
}
+
if (!description) {
errorDetail.setMissingDescription(true);
}
- if (!syntax) {
+
+ // syntax check is only for the components
+ if (!syntax && isComponent) {
errorDetail.setMissingSyntax(true);
}