org.mortbay.jetty.plugin
Class JettyStopMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mortbay.jetty.plugin.JettyStopMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class JettyStopMojo
- extends org.apache.maven.plugin.AbstractMojo
JettyStopMojo - stops a running instance of jetty.
The ff are required:
-DstopKey=someKey
-DstopPort=somePort
- Author:
- David Yu
Field Summary |
protected String |
stopKey
Key to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey>
-DSTOP.PORT=<stopPort> -jar start.jar --stop |
protected int |
stopPort
Port to listen to stop jetty on sending stop command |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stopPort
protected int stopPort
- Port to listen to stop jetty on sending stop command
stopKey
protected String stopKey
- Key to provide when stopping jetty on executing java -DSTOP.KEY=<stopKey>
-DSTOP.PORT=<stopPort> -jar start.jar --stop
JettyStopMojo
public JettyStopMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.