]> git.argeo.org Git - gpl/argeo-slc.git/blob - osgi/EquinoxShutdownMojo.java
Prepare next development cycle
[gpl/argeo-slc.git] / osgi / EquinoxShutdownMojo.java
1 package org.argeo.slc.maven.plugins.osgi;
2
3 import org.apache.maven.plugin.MojoExecutionException;
4 import org.apache.maven.plugin.MojoFailureException;
5 import org.eclipse.core.runtime.adaptor.EclipseStarter;
6
7 /** Shutdowns the Equinox runtime
8 * @goal equinox-shutdown
9 * */
10 public class EquinoxShutdownMojo extends AbstractOsgiMojo {
11
12 public void execute() throws MojoExecutionException, MojoFailureException {
13 try {
14 EclipseStarter.shutdown();
15 } catch (Exception e) {
16 throw new MojoExecutionException("Cannot shutdown OSGi runtime", e);
17 }
18 }
19
20 }