|
||||||||||
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 java.lang.Thread |
consoleScanner
A scanner to check ENTER hits on the console |
protected java.lang.String |
contextPath
The context path for the webapp. |
protected boolean |
daemon
Determines whether or not the server blocks when started. |
protected java.io.File |
jettyConfig
Location of a jetty xml configuration file whose contents will be applied before any plugin configuration. |
protected java.io.File |
overrideWebXml
A web.xml file to be applied AFTER the webapp's web.xml file. |
java.lang.String |
PORT_SYSPROPERTY
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected java.lang.String |
reload
reload can be set to either 'automatic' or 'manual' if 'manual' then the context can be reloaded by a linefeed in the console if 'automatic' then traditional reloading on changed files is enabled. |
protected int |
scanIntervalSeconds
The interval in seconds to scan the webapp for changes and restart the context if necessary. |
protected java.util.ArrayList |
scanList
List of files and directories to scan |
protected Scanner |
scanner
A scanner to check for changes to the webapp |
protected java.util.ArrayList |
scannerListeners
List of Listeners for the scanner |
protected JettyPluginServer |
server
The proxy for the Server object |
protected java.lang.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 SystemProperties |
systemProperties
System properties to set before execution. |
protected java.io.File |
tmpDirectory
The temporary directory to use for the webapp. |
protected Jetty6PluginWebAppContext |
webAppConfig
The "virtual" webapp created by the plugin |
protected java.io.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()
|
java.io.File |
findJettyWebXmlFile(java.io.File webInfDir)
Try and find a jetty-web.xml file, using some historical naming conventions if necessary. |
abstract void |
finishConfigurationBeforeStart()
|
abstract java.lang.Object[] |
getConfiguredConnectors()
|
abstract java.lang.Object |
getConfiguredRequestLog()
|
abstract java.lang.Object[] |
getConfiguredUserRealms()
|
java.lang.String |
getContextPath()
|
java.io.File |
getJettyXmlFile()
|
java.io.File |
getOverrideWebXml()
|
org.apache.maven.project.MavenProject |
getProject()
|
int |
getScanIntervalSeconds()
|
java.util.ArrayList |
getScanList()
|
Scanner |
getScanner()
|
java.util.ArrayList |
getScannerListeners()
|
JettyPluginServer |
getServer()
|
java.io.File |
getTmpDirectory()
|
java.io.File |
getWebDefaultXml()
|
abstract void |
restartWebApp(boolean reconfigureScanner)
|
void |
setScanList(java.util.ArrayList list)
|
void |
setScannerListeners(java.util.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 java.lang.String contextPath
protected java.io.File tmpDirectory
protected java.io.File webDefaultXml
protected java.io.File overrideWebXml
protected int scanIntervalSeconds
protected java.lang.String reload
protected SystemProperties systemProperties
protected java.io.File jettyConfig
protected int stopPort
protected java.lang.String stopKey
protected boolean daemon
Determines whether or not the server blocks when started. The default behavior (daemon = false) will cause the server to pause other processes while it continues to handle web requests. This is useful when starting the server with the intent to work with it interactively.
Often, it is desirable to let the server start and continue running subsequent processes in an automated build environment. This can be facilitated by setting daemon to true.
protected Scanner scanner
protected java.util.ArrayList scanList
protected java.util.ArrayList scannerListeners
protected java.lang.Thread consoleScanner
public java.lang.String PORT_SYSPROPERTY
Constructor Detail |
---|
public AbstractJettyMojo()
Method Detail |
---|
public abstract java.lang.Object[] getConfiguredUserRealms()
public abstract java.lang.Object[] getConfiguredConnectors()
public abstract java.lang.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 java.lang.Exception
java.lang.Exception
public abstract JettyPluginServer createServer() throws java.lang.Exception
java.lang.Exception
public abstract void finishConfigurationBeforeStart() throws java.lang.Exception
java.lang.Exception
public org.apache.maven.project.MavenProject getProject()
public java.io.File getTmpDirectory()
public java.io.File getWebDefaultXml()
public java.io.File getOverrideWebXml()
public java.lang.String getContextPath()
public int getScanIntervalSeconds()
public java.io.File getJettyXmlFile()
public JettyPluginServer getServer()
public void setServer(JettyPluginServer server)
public void setScanList(java.util.ArrayList list)
public java.util.ArrayList getScanList()
public void setScannerListeners(java.util.ArrayList listeners)
public java.util.ArrayList getScannerListeners()
public 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 java.lang.Exception
java.lang.Exception
public void configureWebApplication() throws java.lang.Exception
org.apache.maven.plugin.MojoExecutionException
java.lang.Exception
protected void startConsoleScanner()
public java.io.File findJettyWebXmlFile(java.io.File webInfDir)
webInfDir
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |