|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.mortbay.jetty.plugin.AbstractJettyMojo
public abstract class AbstractJettyMojo
AbstractJettyMojo
| Field Summary | |
|---|---|
protected boolean |
consoleForceReload
If true, the context will be restarted after a line feed on the input console. |
protected Thread |
consoleScanner
A scanner to check ENTER hits on the console |
protected String |
contextPath
The context path for the webapp. |
protected File |
jettyConfig
Location of a jetty xml configuration file whose contents will be applied before any plugin configuration. |
protected File |
overrideWebXml
A web.xml file to be applied AFTER the webapp's web.xml file. |
String |
PORT_SYSPROPERTY
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected int |
scanIntervalSeconds
The interval in seconds to scan the webapp for changes and restart the context if necessary. |
protected ArrayList |
scanList
List of files and directories to scan |
protected org.mortbay.util.Scanner |
scanner
A scanner to check for changes to the webapp |
protected ArrayList |
scannerListeners
List of Listeners for the scanner |
protected JettyPluginServer |
server
The proxy for the Server object |
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 executing -DSTOP.PORT=<stopPort> -DSTOP.KEY=<stopKey> -jar start.jar --stop |
protected SystemProperty[] |
systemProperties
System properties to set before execution. |
protected File |
tmpDirectory
The temporary directory to use for the webapp. |
protected Jetty6PluginWebAppContext |
webAppConfig
The "virtual" webapp created by the plugin |
protected File |
webDefaultXml
A webdefault.xml file to use instead of the default for the webapp. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractJettyMojo()
|
|
| Method Summary | |
|---|---|
abstract void |
applyJettyXml()
|
abstract void |
checkPomConfiguration()
|
abstract void |
configureScanner()
|
void |
configureWebApplication()
Subclasses should invoke this to setup basic info on the webapp |
abstract JettyPluginServer |
createServer()
create a proxy that wraps a particular jetty version Server object |
void |
execute()
|
File |
findJettyWebXmlFile(File webInfDir)
Try and find a jetty-web.xml file, using some historical naming conventions if necessary. |
abstract void |
finishConfigurationBeforeStart()
|
abstract Object[] |
getConfiguredConnectors()
|
abstract Object |
getConfiguredRequestLog()
|
abstract Object[] |
getConfiguredUserRealms()
|
String |
getContextPath()
|
File |
getJettyXmlFile()
|
File |
getOverrideWebXml()
|
org.apache.maven.project.MavenProject |
getProject()
|
int |
getScanIntervalSeconds()
|
ArrayList |
getScanList()
|
org.mortbay.util.Scanner |
getScanner()
|
ArrayList |
getScannerListeners()
|
JettyPluginServer |
getServer()
|
SystemProperty[] |
getSystemProperties()
|
File |
getTmpDirectory()
|
File |
getWebDefaultXml()
|
abstract void |
restartWebApp(boolean reconfigureScanner)
|
void |
setScanList(ArrayList list)
|
void |
setScannerListeners(ArrayList listeners)
|
void |
setServer(JettyPluginServer server)
|
protected void |
startConsoleScanner()
Run a thread that monitors the console input to detect ENTER hits. |
void |
startJetty()
|
| 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 |
| Field Detail |
|---|
protected JettyPluginServer server
protected Jetty6PluginWebAppContext webAppConfig
protected org.apache.maven.project.MavenProject project
protected String contextPath
protected File tmpDirectory
protected File webDefaultXml
protected File overrideWebXml
protected int scanIntervalSeconds
protected boolean consoleForceReload
protected SystemProperty[] systemProperties
protected File jettyConfig
protected int stopPort
protected String stopKey
protected org.mortbay.util.Scanner scanner
protected ArrayList scanList
protected ArrayList scannerListeners
protected Thread consoleScanner
public String PORT_SYSPROPERTY
| Constructor Detail |
|---|
public AbstractJettyMojo()
| Method Detail |
|---|
public abstract Object[] getConfiguredUserRealms()
public abstract Object[] getConfiguredConnectors()
public abstract Object getConfiguredRequestLog()
public abstract void checkPomConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public abstract void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public abstract void applyJettyXml()
throws Exception
Exception
public abstract JettyPluginServer createServer()
throws Exception
Exception
public abstract void finishConfigurationBeforeStart()
throws Exception
Exceptionpublic org.apache.maven.project.MavenProject getProject()
public File getTmpDirectory()
public File getWebDefaultXml()
public File getOverrideWebXml()
public String getContextPath()
public int getScanIntervalSeconds()
public SystemProperty[] getSystemProperties()
public File getJettyXmlFile()
public JettyPluginServer getServer()
public void setServer(JettyPluginServer server)
public void setScanList(ArrayList list)
public ArrayList getScanList()
public void setScannerListeners(ArrayList listeners)
public ArrayList getScannerListeners()
public org.mortbay.util.Scanner getScanner()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void startJetty()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public abstract void restartWebApp(boolean reconfigureScanner)
throws Exception
Exception
public void configureWebApplication()
throws Exception
org.apache.maven.plugin.MojoExecutionException
Exceptionprotected void startConsoleScanner()
public File findJettyWebXmlFile(File webInfDir)
webInfDir -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||