org.jvnet.hudson.maven.plugins.hpi
Class AbstractJettyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jvnet.hudson.maven.plugins.hpi.AbstractJettyMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractJetty6Mojo
public abstract class AbstractJettyMojo
- extends org.apache.maven.plugin.AbstractMojo
DO NOT MODIFY.
Copied verbatim from Jetty code, just so that Maven's qdox can find
all the injection points. All the changes should go to RunMojo.
| 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 |
PORT_SYSPROPERTY
public String PORT_SYSPROPERTY
AbstractJettyMojo
public AbstractJettyMojo()
getConfiguredUserRealms
public abstract Object[] getConfiguredUserRealms()
- Returns:
- Returns the realms configured in the pom
getConfiguredConnectors
public abstract Object[] getConfiguredConnectors()
- Returns:
- Returns the connectors configured in the pom
getConfiguredRequestLog
public abstract Object getConfiguredRequestLog()
checkPomConfiguration
public abstract void checkPomConfiguration()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
configureScanner
public abstract void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
applyJettyXml
public abstract void applyJettyXml()
throws Exception
- Throws:
Exception
createServer
public abstract org.mortbay.jetty.plugin.util.JettyPluginServer createServer()
throws Exception
- create a proxy that wraps a particular jetty version Server object
- Returns:
-
- Throws:
Exception
finishConfigurationBeforeStart
public abstract void finishConfigurationBeforeStart()
throws Exception
- Throws:
Exception
getProject
public org.apache.maven.project.MavenProject getProject()
getTmpDirectory
public File getTmpDirectory()
getWebDefaultXml
public File getWebDefaultXml()
getContextPath
public String getContextPath()
- Returns:
- Returns the contextPath.
getScanIntervalSeconds
public int getScanIntervalSeconds()
- Returns:
- Returns the scanIntervalSeconds.
getSystemProperties
public org.mortbay.jetty.plugin.util.SystemProperty[] getSystemProperties()
getJettyXmlFileName
public String getJettyXmlFileName()
getWebApplication
public org.mortbay.jetty.plugin.util.JettyPluginWebApplication getWebApplication()
setWebApplication
public void setWebApplication(org.mortbay.jetty.plugin.util.JettyPluginWebApplication webapp)
getServer
public org.mortbay.jetty.plugin.util.JettyPluginServer getServer()
setServer
public void setServer(org.mortbay.jetty.plugin.util.JettyPluginServer server)
setScanList
public void setScanList(ArrayList list)
getScanList
public ArrayList getScanList()
setScannerListeners
public void setScannerListeners(ArrayList listeners)
getScannerListeners
public ArrayList getScannerListeners()
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
startJetty
public void startJetty()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getDefaultHttpPort
protected String getDefaultHttpPort()
configureWebApplication
public void configureWebApplication()
throws Exception
- Subclasses should invoke this to setup basic info
on the webapp
- Throws:
org.apache.maven.plugin.MojoExecutionException
Exception
startScanner
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.
findJettyWebXmlFile
public File findJettyWebXmlFile(File webInfDir)
- Try and find a jetty-web.xml file, using some
historical naming conventions if necessary.
- Parameters:
webInfDir -
- Returns:
Copyright © 2011. All Rights Reserved.