servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r595199 - /incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java
Date Thu, 15 Nov 2007 03:59:48 GMT
Author: ffang
Date: Wed Nov 14 19:59:47 2007
New Revision: 595199

URL: http://svn.apache.org/viewvc?rev=595199&view=rev
Log:
using new added onShutDown handler to fix compilation failure

Modified:
    incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java

Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java?rev=595199&r1=595198&r2=595199&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java
(original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/ServiceMixEmbeddedMojo.java
Wed Nov 14 19:59:47 2007
@@ -53,20 +53,20 @@
 
             container.onShutDown(new Runnable() {
                 public void run() {
+                    if (context instanceof DisposableBean) {
+                        try {
+                            ((DisposableBean) context).destroy();
+                        } catch (Exception e) {
+                            // Ignore
+                        }
+                    }
+
                 }
             });
         } catch (Exception e) {
             throw new MojoExecutionException(
                     "Apache ServiceMix was able to deploy project", e);
-        } finally {
-            if (context instanceof DisposableBean) {
-                try {
-                    ((DisposableBean) context).destroy();
-                } catch (Exception e) {
-                    // Ignore
-                }
-            }
-        }
+        } 
 
     }
 



Mime
View raw message