|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.plugins.jetty.AbstractJettyRunTask
public abstract class AbstractJettyRunTask extends ConventionTask
Base class for all tasks which deploy a web application to an embedded Jetty web container.
Field Summary | |
---|---|
static String |
PORT_SYSPROPERTY
|
protected Thread |
consoleScanner
A scanner to check ENTER hits on the console. |
protected 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 List |
scannerListeners
List of Listeners for the scanner. |
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()
|
Iterable
|
getAdditionalRuntimeJars()
Returns the classpath to make available to the web application. |
Connector[]
|
getConnectors()
|
String
|
getContextPath()
Returns the context path to use to deploy the web application. |
Integer
|
getHttpPort()
Returns the TCP port for Jetty to listen on for incoming HTTP requests. |
File
|
getJettyConfig()
Returns the jetty configuration file to use. |
File
|
getOverrideWebXml()
|
String
|
getReload()
|
RequestLog
|
getRequestLog()
|
int
|
getScanIntervalSeconds()
|
Scanner
|
getScanner()
|
List
|
getScannerListeners()
|
JettyPluginServer
|
getServer()
|
String
|
getStopKey()
Returns the key to use to stop Jetty. |
Integer
|
getStopPort()
Returns the TCP port for Jetty to listen on for stop requests. |
UserRealm[]
|
getUserRealms()
|
JettyPluginWebAppContext
|
getWebAppConfig()
|
File
|
getWebDefaultXml()
|
boolean
|
isDaemon()
Specifies whether the Jetty server should run in the background. |
void
|
restartWebApp(boolean reconfigureScanner)
|
void
|
setAdditionalRuntimeJars(Iterable additionalRuntimeJars)
|
void
|
setConnectors(Connector[] connectors)
|
void
|
setContextPath(String contextPath)
|
void
|
setDaemon(boolean daemon)
|
void
|
setHttpPort(Integer httpPort)
|
void
|
setJettyConfig(File jettyConfig)
|
void
|
setOverrideWebXml(File overrideWebXml)
|
void
|
setReload(String reload)
|
void
|
setRequestLog(RequestLog requestLog)
|
void
|
setScanIntervalSeconds(int scanIntervalSeconds)
|
void
|
setScannerListeners(List listeners)
|
void
|
setServer(JettyPluginServer server)
|
void
|
setStopKey(String stopKey)
|
void
|
setStopPort(Integer stopPort)
|
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 |
---|
public static final String PORT_SYSPROPERTY
protected Thread consoleScanner
protected String reload
protected List scannerListeners
Method Detail |
---|
public void applyJettyXml()
public void configureScanner()
public void configureWebApplication()
public JettyPluginServer createServer()
public File findJettyWebXmlFile(File webInfDir)
public void finishConfigurationBeforeStart()
@InputFiles public Iterable getAdditionalRuntimeJars()
public Connector[] getConnectors()
public String getContextPath()
public Integer getHttpPort()
@InputFile @Optional public File getJettyConfig()
@InputFile @Optional public File getOverrideWebXml()
public String getReload()
public RequestLog getRequestLog()
public int getScanIntervalSeconds()
public Scanner getScanner()
public List getScannerListeners()
public JettyPluginServer getServer()
public String getStopKey()
public Integer getStopPort()
public UserRealm[] getUserRealms()
public JettyPluginWebAppContext getWebAppConfig()
@InputFile @Optional public File getWebDefaultXml()
public boolean isDaemon()
public void restartWebApp(boolean reconfigureScanner)
public void setAdditionalRuntimeJars(Iterable additionalRuntimeJars)
public void setConnectors(Connector[] connectors)
public void setContextPath(String contextPath)
public void setDaemon(boolean daemon)
public void setHttpPort(Integer httpPort)
public void setJettyConfig(File jettyConfig)
public void setOverrideWebXml(File overrideWebXml)
public void setReload(String reload)
public void setRequestLog(RequestLog requestLog)
public void setScanIntervalSeconds(int scanIntervalSeconds)
public void setScannerListeners(List listeners)
public void setServer(JettyPluginServer server)
public void setStopKey(String stopKey)
public void setStopPort(Integer stopPort)
public void setUserRealms(UserRealm[] userRealms)
public void setWebAppConfig(JettyPluginWebAppContext webAppConfig)
public void setWebDefaultXml(File webDefaultXml)
@TaskAction protected void start()
protected void startConsoleScanner()
public void startJetty()
public void startJettyInternal()
public void validateConfiguration()
Gradle API 1.0