public abstract class AbstractJettyMojo
extends org.apache.maven.plugin.AbstractMojo
RunMojo.| Modifier and Type | Field and Description |
|---|---|
String |
PORT_SYSPROPERTY |
| Constructor and Description |
|---|
AbstractJettyMojo() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyJettyXml() |
abstract void |
checkPomConfiguration() |
abstract void |
configureScanner() |
void |
configureWebApplication()
Subclasses should invoke this to setup basic info
on the webapp
|
abstract org.mortbay.jetty.plugin.util.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() |
protected String |
getDefaultHttpPort() |
String |
getJettyXmlFileName() |
org.apache.maven.project.MavenProject |
getProject() |
int |
getScanIntervalSeconds() |
ArrayList |
getScanList() |
ArrayList |
getScannerListeners() |
org.mortbay.jetty.plugin.util.JettyPluginServer |
getServer() |
org.mortbay.jetty.plugin.util.SystemProperty[] |
getSystemProperties() |
File |
getTmpDirectory() |
org.mortbay.jetty.plugin.util.JettyPluginWebApplication |
getWebApplication() |
File |
getWebDefaultXml() |
void |
setScanList(ArrayList list) |
void |
setScannerListeners(ArrayList listeners) |
void |
setServer(org.mortbay.jetty.plugin.util.JettyPluginServer server) |
void |
setWebApplication(org.mortbay.jetty.plugin.util.JettyPluginWebApplication webapp) |
void |
startJetty() |
protected void |
startScanner()
Run a scanner thread on the given list of files and directories, calling
stop/start on the given list of LifeCycle objects if any of the watched
files change.
|
public String PORT_SYSPROPERTY
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.MojoExecutionExceptionpublic abstract void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic abstract org.mortbay.jetty.plugin.util.JettyPluginServer createServer()
throws Exception
Exceptionpublic abstract void finishConfigurationBeforeStart()
throws Exception
Exceptionpublic org.apache.maven.project.MavenProject getProject()
public File getTmpDirectory()
public File getWebDefaultXml()
public String getContextPath()
public int getScanIntervalSeconds()
public org.mortbay.jetty.plugin.util.SystemProperty[] getSystemProperties()
public String getJettyXmlFileName()
public org.mortbay.jetty.plugin.util.JettyPluginWebApplication getWebApplication()
public void setWebApplication(org.mortbay.jetty.plugin.util.JettyPluginWebApplication webapp)
public org.mortbay.jetty.plugin.util.JettyPluginServer getServer()
public void setServer(org.mortbay.jetty.plugin.util.JettyPluginServer server)
public void setScanList(ArrayList list)
public ArrayList getScanList()
public void setScannerListeners(ArrayList listeners)
public ArrayList getScannerListeners()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionpublic void startJetty()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getDefaultHttpPort()
public void configureWebApplication()
throws Exception
org.apache.maven.plugin.MojoExecutionExceptionExceptionprotected void startScanner()
Copyright © 2004-2013. All Rights Reserved.