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
- }
- }
- }
+ }
}