|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.util.ArrayList |
scannerListeners
List of Listeners for the scanner |
Constructor Summary | |
AbstractJettyRunTask()
|
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()
|
java.util.Scanner
|
getScanner()
|
java.util.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(java.util.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
|
start()
|
protected void
|
startConsoleScanner()
Run a thread that monitors the console input to detect ENTER hits. |
void
|
startJetty()
|
void
|
startJettyInternal()
|
void
|
validateConfiguration()
|
Field Detail |
---|
java.lang.String PORT_SYSPROPERTY
protected java.lang.Thread consoleScanner
protected java.lang.String reload
protected java.util.ArrayList scannerListeners
Constructor Detail |
---|
AbstractJettyRunTask()
Method Detail |
---|
public void applyJettyXml()
public void configureScanner()
public void configureWebApplication()
public JettyPluginServer createServer()
public File findJettyWebXmlFile(File webInfDir)
public void finishConfigurationBeforeStart()
@InputFiles public java.lang.Iterable getAdditionalRuntimeJars()
public Connector[] getConnectors()
public java.lang.String getContextPath()
public java.lang.Integer getHttpPort()
@InputFile @Optional public File getJettyConfig()
@InputFile @Optional public File getOverrideWebXml()
public java.lang.String getReload()
public RequestLog getRequestLog()
public int getScanIntervalSeconds()
public java.util.Scanner getScanner()
public java.util.ArrayList getScannerListeners()
public JettyPluginServer getServer()
public java.lang.String getStopKey()
public java.lang.Integer getStopPort()
@OutputDirectory @Optional public File getTmpDirectory()
public UserRealm[] getUserRealms()
public JettyPluginWebAppContext getWebAppConfig()
@InputFile @Optional 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(java.util.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 start()
protected void startConsoleScanner()
public void startJetty()
public void startJettyInternal()
public void validateConfiguration()
Groovy Documentation