|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
org.gradle.api.plugins.jetty.AbstractJettyRunTask
class AbstractJettyRunTask extends ConventionTask
Field Summary | |
---|---|
java.lang.String |
PORT_SYSPROPERTY
|
protected java.lang.Thread |
consoleScanner
A scanner to check ENTER hits on the console |
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 ArrayList |
scannerListeners
List of Listeners for the scanner |
Constructor Summary | |
AbstractJettyRunTask(Project project, java.lang.String name)
|
Method Summary | |
---|---|
void
|
applyJettyXml()
|
void
|
configureScanner()
|
void
|
configureWebApplication()
Subclasses should invoke this to setup basic info on the webapp |
JettyPluginServer
|
createServer()
create a proxy that wraps a particular jetty version Server object |
File
|
findJettyWebXmlFile(File webInfDir)
Try and find a jetty-web.xml file, using some historical naming conventions if necessary. |
void
|
finishConfigurationBeforeStart()
|
java.lang.Iterable
|
getAdditionalRuntimeJars()
|
Connector[]
|
getConnectors()
|
java.lang.String
|
getContextPath()
|
java.lang.Integer
|
getHttpPort()
|
File
|
getJettyConfig()
|
File
|
getOverrideWebXml()
|
java.lang.String
|
getReload()
|
RequestLog
|
getRequestLog()
|
int
|
getScanIntervalSeconds()
|
Scanner
|
getScanner()
|
ArrayList
|
getScannerListeners()
|
JettyPluginServer
|
getServer()
|
java.lang.String
|
getStopKey()
|
java.lang.Integer
|
getStopPort()
|
File
|
getTmpDirectory()
|
UserRealm[]
|
getUserRealms()
|
JettyPluginWebAppContext
|
getWebAppConfig()
|
File
|
getWebDefaultXml()
|
boolean
|
isDaemon()
|
void
|
restartWebApp(boolean reconfigureScanner)
|
void
|
setAdditionalRuntimeJars(java.lang.Iterable additionalRuntimeJars)
|
void
|
setConnectors(Connector[] connectors)
|
void
|
setContextPath(java.lang.String contextPath)
|
void
|
setDaemon(boolean daemon)
|
void
|
setHttpPort(java.lang.Integer httpPort)
|
void
|
setJettyConfig(File jettyConfig)
|
void
|
setOverrideWebXml(File overrideWebXml)
|
void
|
setReload(java.lang.String reload)
|
void
|
setRequestLog(RequestLog requestLog)
|
void
|
setScanIntervalSeconds(int scanIntervalSeconds)
|
void
|
setScannerListeners(ArrayList listeners)
|
void
|
setServer(JettyPluginServer server)
|
void
|
setStopKey(java.lang.String stopKey)
|
void
|
setStopPort(java.lang.Integer stopPort)
|
void
|
setTmpDirectory(File tmpDirectory)
|
void
|
setUserRealms(UserRealm[] userRealms)
|
void
|
setWebAppConfig(JettyPluginWebAppContext webAppConfig)
|
void
|
setWebDefaultXml(File webDefaultXml)
|
protected void
|
startConsoleScanner()
Run a thread that monitors the console input to detect ENTER hits. |
void
|
startJetty()
|
void
|
startJettyInternal()
|
void
|
validateConfiguration()
|
Methods inherited from class ConventionTask | |
---|---|
conv, conventionMapping, conventionMapping, conventionProperty, getConventionAwareHelper, getConventionMapping, setConventionAwareHelper, setConventionMapping |
Methods inherited from class DefaultTask | |
---|---|
leftShift, methodMissing, propertyMissing |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Field Detail |
---|
java.lang.String PORT_SYSPROPERTY
protected java.lang.Thread consoleScanner
protected java.lang.String reload
protected ArrayList scannerListeners
Constructor Detail |
---|
public AbstractJettyRunTask(Project project, java.lang.String name)
Method Detail |
---|
public void applyJettyXml()
public void configureScanner()
public void configureWebApplication()
public JettyPluginServer createServer()
public File findJettyWebXmlFile(File webInfDir)
public void finishConfigurationBeforeStart()
public java.lang.Iterable getAdditionalRuntimeJars()
public Connector[] getConnectors()
public java.lang.String getContextPath()
public java.lang.Integer getHttpPort()
public File getJettyConfig()
public File getOverrideWebXml()
public java.lang.String getReload()
public RequestLog getRequestLog()
public int getScanIntervalSeconds()
public Scanner getScanner()
public ArrayList getScannerListeners()
public JettyPluginServer getServer()
public java.lang.String getStopKey()
public java.lang.Integer getStopPort()
public File getTmpDirectory()
public UserRealm[] getUserRealms()
public JettyPluginWebAppContext getWebAppConfig()
public File getWebDefaultXml()
public boolean isDaemon()
public void restartWebApp(boolean reconfigureScanner)
public void setAdditionalRuntimeJars(java.lang.Iterable additionalRuntimeJars)
public void setConnectors(Connector[] connectors)
public void setContextPath(java.lang.String contextPath)
public void setDaemon(boolean daemon)
public void setHttpPort(java.lang.Integer httpPort)
public void setJettyConfig(File jettyConfig)
public void setOverrideWebXml(File overrideWebXml)
public void setReload(java.lang.String reload)
public void setRequestLog(RequestLog requestLog)
public void setScanIntervalSeconds(int scanIntervalSeconds)
public void setScannerListeners(ArrayList listeners)
public void setServer(JettyPluginServer server)
public void setStopKey(java.lang.String stopKey)
public void setStopPort(java.lang.Integer stopPort)
public void setTmpDirectory(File tmpDirectory)
public void setUserRealms(UserRealm[] userRealms)
public void setWebAppConfig(JettyPluginWebAppContext webAppConfig)
public void setWebDefaultXml(File webDefaultXml)
protected void startConsoleScanner()
public void startJetty()
public void startJettyInternal()
public void validateConfiguration()
Groovy Documentation