|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.api.internal.ConventionTask org.gradle.api.plugins.jetty.AbstractJettyRunTask
public abstract class AbstractJettyRunTask
Base class for all tasks which deploy a web application to an embedded Jetty web container.
Field Summary | |
---|---|
protected Thread |
consoleScanner
A scanner to check ENTER hits on the console. |
static String |
PORT_SYSPROPERTY
|
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 ArrayList |
scannerListeners
List of Listeners for the scanner. |
Fields inherited from interface org.gradle.api.Task |
---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
Constructor Summary | |
---|---|
AbstractJettyRunTask()
|
Method Summary | |
---|---|
abstract void |
applyJettyXml()
|
abstract void |
configureScanner()
|
void |
configureWebApplication()
Subclasses should invoke this to setup basic info on the webapp. |
abstract org.gradle.api.plugins.jetty.internal.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. |
abstract void |
finishConfigurationBeforeStart()
|
Iterable<File> |
getAdditionalRuntimeJars()
|
org.mortbay.jetty.Connector[] |
getConnectors()
|
String |
getContextPath()
|
Integer |
getHttpPort()
|
File |
getJettyConfig()
|
File |
getOverrideWebXml()
|
String |
getReload()
|
org.mortbay.jetty.RequestLog |
getRequestLog()
|
int |
getScanIntervalSeconds()
|
org.mortbay.util.Scanner |
getScanner()
|
ArrayList |
getScannerListeners()
|
org.gradle.api.plugins.jetty.internal.JettyPluginServer |
getServer()
|
String |
getStopKey()
|
Integer |
getStopPort()
|
org.mortbay.jetty.security.UserRealm[] |
getUserRealms()
|
org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext |
getWebAppConfig()
|
File |
getWebDefaultXml()
|
boolean |
isDaemon()
|
abstract void |
restartWebApp(boolean reconfigureScanner)
|
void |
setAdditionalRuntimeJars(Iterable<File> additionalRuntimeJars)
|
void |
setConnectors(org.mortbay.jetty.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(org.mortbay.jetty.RequestLog requestLog)
|
void |
setScanIntervalSeconds(int scanIntervalSeconds)
|
void |
setScannerListeners(ArrayList listeners)
|
void |
setServer(org.gradle.api.plugins.jetty.internal.JettyPluginServer server)
|
void |
setStopKey(String stopKey)
|
void |
setStopPort(Integer stopPort)
|
void |
setUserRealms(org.mortbay.jetty.security.UserRealm[] userRealms)
|
void |
setWebAppConfig(org.gradle.api.plugins.jetty.internal.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()
|
abstract void |
validateConfiguration()
|
Methods inherited from class org.gradle.api.internal.ConventionTask |
---|
conventionMapping, getConventionMapping, setConventionMapping |
Methods inherited from class org.gradle.api.internal.AbstractTask |
---|
captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, equals, execute, getActions, getAdditionalProperties, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuter, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getTaskDependencies, getTemporaryDir, hashCode, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setConvention, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String reload
protected ArrayList scannerListeners
protected Thread consoleScanner
public static final String PORT_SYSPROPERTY
Constructor Detail |
---|
public AbstractJettyRunTask()
Method Detail |
---|
public abstract void validateConfiguration()
public abstract void configureScanner()
public abstract void applyJettyXml() throws Exception
Exception
public abstract org.gradle.api.plugins.jetty.internal.JettyPluginServer createServer() throws Exception
Exception
public abstract void finishConfigurationBeforeStart() throws Exception
Exception
protected void start()
public org.gradle.api.plugins.jetty.internal.JettyPluginServer getServer()
public void setServer(org.gradle.api.plugins.jetty.internal.JettyPluginServer server)
public void setScannerListeners(ArrayList listeners)
public ArrayList getScannerListeners()
public org.mortbay.util.Scanner getScanner()
public void startJetty()
public void startJettyInternal()
public abstract void restartWebApp(boolean reconfigureScanner) throws Exception
Exception
public void configureWebApplication() throws Exception
Exception
protected void startConsoleScanner()
public File findJettyWebXmlFile(File webInfDir)
public File getWebDefaultXml()
public void setWebDefaultXml(File webDefaultXml)
public File getOverrideWebXml()
public void setOverrideWebXml(File overrideWebXml)
public int getScanIntervalSeconds()
public void setScanIntervalSeconds(int scanIntervalSeconds)
public String getContextPath()
public void setContextPath(String contextPath)
public org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext getWebAppConfig()
public void setWebAppConfig(org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext webAppConfig)
public String getReload()
public void setReload(String reload)
public File getJettyConfig()
public void setJettyConfig(File jettyConfig)
public Integer getStopPort()
public void setStopPort(Integer stopPort)
public String getStopKey()
public void setStopKey(String stopKey)
public boolean isDaemon()
public void setDaemon(boolean daemon)
public Integer getHttpPort()
public void setHttpPort(Integer httpPort)
public org.mortbay.jetty.Connector[] getConnectors()
public void setConnectors(org.mortbay.jetty.Connector[] connectors)
public org.mortbay.jetty.security.UserRealm[] getUserRealms()
public void setUserRealms(org.mortbay.jetty.security.UserRealm[] userRealms)
public org.mortbay.jetty.RequestLog getRequestLog()
public void setRequestLog(org.mortbay.jetty.RequestLog requestLog)
public Iterable<File> getAdditionalRuntimeJars()
public void setAdditionalRuntimeJars(Iterable<File> additionalRuntimeJars)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |