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 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() |
JettyPluginServer |
getServer() |
SystemProperty[] |
getSystemProperties() |
File |
getTmpDirectory() |
JettyPluginWebApplication |
getWebApplication() |
File |
getWebDefaultXml() |
void |
setScanList(ArrayList list) |
void |
setScannerListeners(ArrayList listeners) |
void |
setServer(JettyPluginServer server) |
void |
setWebApplication(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 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 SystemProperty[] getSystemProperties()
public String getJettyXmlFileName()
public JettyPluginWebApplication getWebApplication()
public void setWebApplication(JettyPluginWebApplication webapp)
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 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 © 2014. All rights reserved.