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 2013/11/29 16:44:18 UTC
[2/2] git commit: CAMEL-7023: Added hawtio goal to camel maven plugin.
CAMEL-7023: Added hawtio goal to camel maven plugin.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cdb57945
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cdb57945
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cdb57945
Branch: refs/heads/camel-2.12.x
Commit: cdb579454df3623d325e115e6274c086af9e7268
Parents: d2ef3e2
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Nov 29 16:46:05 2013 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Nov 29 16:46:20 2013 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/camel/maven/HawtioMojo.java | 2 +-
.../src/main/java/org/apache/camel/maven/RunMojo.java | 11 ++++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/cdb57945/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
index 1c8f697..b7b6159 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/HawtioMojo.java
@@ -43,7 +43,7 @@ public class HawtioMojo extends RunMojo {
}
@Override
- void beforeBootstrapCamel() throws Exception {
+ protected void beforeBootstrapCamel() throws Exception {
getLog().info("Starting hawtio ...");
Method hawtioMain = Thread.currentThread().getContextClassLoader().loadClass("io.hawt.app.App")
.getMethod("main", new Class[] {String[].class});
http://git-wip-us.apache.org/repos/asf/camel/blob/cdb57945/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
index 510333b6..26f540b 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
@@ -488,6 +488,8 @@ public class RunMojo extends AbstractExecMojo {
main.setAccessible(true);
}
main.invoke(main, new Object[] {arguments});
+
+ afterBootstrapCamel();
} catch (Exception e) { // just pass it on
// let it be printed so end users can see the exception on the console
getLog().error("*************************************");
@@ -540,7 +542,14 @@ public class RunMojo extends AbstractExecMojo {
/**
* Allows plugin extensions to do custom logic before bootstrapping Camel.
*/
- void beforeBootstrapCamel() throws Exception {
+ protected void beforeBootstrapCamel() throws Exception {
+ // noop
+ }
+
+ /**
+ * Allows plugin extensions to do custom logic after bootstrapping Camel.
+ */
+ protected void afterBootstrapCamel() throws Exception {
// noop
}