You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/12/09 03:11:11 UTC

[07/50] [abbrv] 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/5520035b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5520035b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5520035b

Branch: refs/heads/camel-gora
Commit: 5520035be29cb842d27e0bf2b77ed0c1a4cc17eb
Parents: 799f95c
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:05 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/5520035b/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/5520035b/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 bb2fdcb..edf46fc 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
     }