camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhira...@apache.org
Subject git commit: Added proxyClass name to error message
Date Mon, 23 Jun 2014 17:20:48 GMT
Repository: camel
Updated Branches:
  refs/heads/master 042e32468 -> b28962cf1


Added proxyClass name to error message


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

Branch: refs/heads/master
Commit: b28962cf1bca10caf277a426dcc5a75541aa9391
Parents: 042e324
Author: Dhiraj Bokde <dhirajsb@yahoo.com>
Authored: Mon Jun 23 10:20:19 2014 -0700
Committer: Dhiraj Bokde <dhirajsb@yahoo.com>
Committed: Mon Jun 23 10:20:43 2014 -0700

----------------------------------------------------------------------
 .../org/apache/camel/maven/ApiComponentGeneratorMojo.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b28962cf/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/ApiComponentGeneratorMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/ApiComponentGeneratorMojo.java
b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/ApiComponentGeneratorMojo.java
index 4f6a4b4..3f32b0b 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/ApiComponentGeneratorMojo.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/ApiComponentGeneratorMojo.java
@@ -76,7 +76,12 @@ public class ApiComponentGeneratorMojo extends AbstractApiMethodBaseMojo
{
                 if (apiMethodGenerator != null) {
                     // configure API method properties and generate Proxy classes
                     configureMethodGenerator(apiMethodGenerator, api);
-                    apiMethodGenerator.execute();
+                    try {
+                        apiMethodGenerator.execute();
+                    } catch (Exception e) {
+                        final String msg = "Error generating source for " + api.getProxyClass()
+ ": " + e.getMessage();
+                        throw new MojoExecutionException(msg, e);
+                    }
                 } else {
                     // make sure the proxy class is being generated elsewhere
                     final String proxyClass = api.getProxyClass();


Mime
View raw message