@Deprecated
public abstract class AbstractJettyRunTask
extends org.gradle.api.internal.ConventionTask
Task.Namer
Modifier and Type | Field and Description |
---|---|
protected java.lang.Thread |
consoleScanner
Deprecated.
A scanner to check ENTER hits on the console.
|
static java.lang.String |
PORT_SYSPROPERTY
Deprecated.
|
protected java.lang.String |
reload
Deprecated.
|
protected java.util.List<org.eclipse.jetty.util.Scanner.Listener> |
scannerListeners
Deprecated.
List of Listeners for the scanner.
|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
AbstractJettyRunTask()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
applyJettyXml()
Deprecated.
|
abstract void |
configureScanner()
Deprecated.
|
void |
configureWebApplication()
Deprecated.
Subclasses should invoke this to setup basic info on the webapp.
|
abstract org.gradle.api.plugins.jetty.internal.JettyPluginServer |
createServer()
Deprecated.
create a proxy that wraps a particular jetty version Server object.
|
java.io.File |
findJettyWebXmlFile(java.io.File webInfDir)
Deprecated.
Try and find a jetty-web.xml file, using some historical naming conventions if necessary.
|
abstract void |
finishConfigurationBeforeStart()
Deprecated.
|
java.lang.Iterable<java.io.File> |
getAdditionalRuntimeJars()
Deprecated.
Returns the classpath to make available to the web application.
|
org.eclipse.jetty.server.Connector[] |
getConnectors()
Deprecated.
|
java.lang.String |
getContextPath()
Deprecated.
Returns the context path to use to deploy the web application.
|
java.lang.Integer |
getHttpPort()
Deprecated.
Returns the TCP port for Jetty to listen on for incoming HTTP requests.
|
java.io.File |
getJettyConfig()
Deprecated.
Returns the jetty configuration file to use.
|
java.io.File |
getOverrideWebXml()
Deprecated.
|
java.lang.String |
getReload()
Deprecated.
Returns the reload mode, which is either
"automatic" or "manual" . |
org.eclipse.jetty.server.RequestLog |
getRequestLog()
Deprecated.
|
int |
getScanIntervalSeconds()
Deprecated.
Returns the interval in seconds between scanning the web app for file changes.
|
org.eclipse.jetty.util.Scanner |
getScanner()
Deprecated.
|
java.util.List<org.eclipse.jetty.util.Scanner.Listener> |
getScannerListeners()
Deprecated.
|
org.gradle.api.plugins.jetty.internal.JettyPluginServer |
getServer()
Deprecated.
|
java.lang.String |
getStopKey()
Deprecated.
Returns the key to use to stop Jetty.
|
java.lang.Integer |
getStopPort()
Deprecated.
Returns the TCP port for Jetty to listen on for stop requests.
|
org.eclipse.jetty.security.LoginService[] |
getUserRealms()
Deprecated.
|
org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext |
getWebAppConfig()
Deprecated.
|
java.io.File |
getWebDefaultXml()
Deprecated.
|
boolean |
isDaemon()
Deprecated.
Specifies whether the Jetty server should run in the background.
|
abstract void |
restartWebApp(boolean reconfigureScanner)
Deprecated.
|
void |
setAdditionalRuntimeJars(java.lang.Iterable<java.io.File> additionalRuntimeJars)
Deprecated.
|
void |
setConnectors(org.eclipse.jetty.server.Connector[] connectors)
Deprecated.
|
void |
setContextPath(java.lang.String contextPath)
Deprecated.
|
void |
setDaemon(boolean daemon)
Deprecated.
|
void |
setHttpPort(java.lang.Integer httpPort)
Deprecated.
|
void |
setJettyConfig(java.io.File jettyConfig)
Deprecated.
|
void |
setOverrideWebXml(java.io.File overrideWebXml)
Deprecated.
|
void |
setReload(java.lang.String reload)
Deprecated.
Sets the reload mode, which is either
"automatic" or "manual" . |
void |
setRequestLog(org.eclipse.jetty.server.RequestLog requestLog)
Deprecated.
|
void |
setScanIntervalSeconds(int scanIntervalSeconds)
Deprecated.
Sets the interval in seconds between scanning the web app for file changes.
|
void |
setScannerListeners(java.util.List<org.eclipse.jetty.util.Scanner.Listener> listeners)
Deprecated.
|
void |
setServer(org.gradle.api.plugins.jetty.internal.JettyPluginServer server)
Deprecated.
|
void |
setStopKey(java.lang.String stopKey)
Deprecated.
|
void |
setStopPort(java.lang.Integer stopPort)
Deprecated.
|
void |
setUserRealms(org.eclipse.jetty.security.LoginService[] userRealms)
Deprecated.
|
void |
setWebAppConfig(org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext webAppConfig)
Deprecated.
|
void |
setWebDefaultXml(java.io.File webDefaultXml)
Deprecated.
|
protected void |
start()
Deprecated.
|
protected void |
startConsoleScanner()
Deprecated.
Run a thread that monitors the console input to detect ENTER hits.
|
void |
startJetty()
Deprecated.
|
void |
startJettyInternal()
Deprecated.
|
abstract void |
validateConfiguration()
Deprecated.
|
conventionMapping, conventionMapping, getConventionMapping
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
protected java.lang.String reload
protected java.util.List<org.eclipse.jetty.util.Scanner.Listener> scannerListeners
protected java.lang.Thread consoleScanner
public static final java.lang.String PORT_SYSPROPERTY
public abstract void validateConfiguration()
public abstract void configureScanner()
public abstract void applyJettyXml() throws java.lang.Exception
java.lang.Exception
public abstract org.gradle.api.plugins.jetty.internal.JettyPluginServer createServer() throws java.lang.Exception
java.lang.Exception
public abstract void finishConfigurationBeforeStart() throws java.lang.Exception
java.lang.Exception
protected void start()
@Internal public org.gradle.api.plugins.jetty.internal.JettyPluginServer getServer()
public void setServer(org.gradle.api.plugins.jetty.internal.JettyPluginServer server)
public void setScannerListeners(java.util.List<org.eclipse.jetty.util.Scanner.Listener> listeners)
@Internal public java.util.List<org.eclipse.jetty.util.Scanner.Listener> getScannerListeners()
@Internal public org.eclipse.jetty.util.Scanner getScanner()
public void startJetty()
public void startJettyInternal()
public abstract void restartWebApp(boolean reconfigureScanner) throws java.lang.Exception
java.lang.Exception
public void configureWebApplication() throws java.lang.Exception
java.lang.Exception
protected void startConsoleScanner()
public java.io.File findJettyWebXmlFile(java.io.File webInfDir)
@InputFile @Optional public java.io.File getWebDefaultXml()
public void setWebDefaultXml(java.io.File webDefaultXml)
@InputFile @Optional public java.io.File getOverrideWebXml()
public void setOverrideWebXml(java.io.File overrideWebXml)
@Internal public int getScanIntervalSeconds()
reload
is set to "automatic"
. Defaults to 0
,
which disables automatic reloading.public void setScanIntervalSeconds(int scanIntervalSeconds)
reload
is set to "automatic"
. Defaults to 0
,
which disables automatic reloading.@Internal public java.lang.String getContextPath()
public void setContextPath(java.lang.String contextPath)
@Internal public org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext getWebAppConfig()
public void setWebAppConfig(org.gradle.api.plugins.jetty.internal.JettyPluginWebAppContext webAppConfig)
@Internal public java.lang.String getReload()
"automatic"
or "manual"
.
In automatic mode, the web app is scanned for file changes every n seconds, where n is
determined by the scanIntervalSeconds
property. (Note that scanIntervalSeconds
defaults to 0
, which disables automatic reloading.) If files changes are
detected, the web app is reloaded.
In manual mode, the web app is reloaded whenever the Enter key is pressed.
public void setReload(java.lang.String reload)
"automatic"
or "manual"
.
In automatic mode, the web app is scanned for file changes every n seconds, where n is
determined by the scanIntervalSeconds
property. (Note that scanIntervalSeconds
defaults to 0
, which disables automatic reloading.) If files changes are
detected, the web app is reloaded.
In manual mode, the web app is reloaded whenever the Enter key is pressed.
@InputFile @Optional public java.io.File getJettyConfig()
null
, no configuration file is used.public void setJettyConfig(java.io.File jettyConfig)
@Internal public java.lang.Integer getStopPort()
public void setStopPort(java.lang.Integer stopPort)
@Internal public java.lang.String getStopKey()
public void setStopKey(java.lang.String stopKey)
@Internal public boolean isDaemon()
true
, this task completes as soon as the server has started. When false
, this task blocks until the Jetty
server is stopped.public void setDaemon(boolean daemon)
@Internal public java.lang.Integer getHttpPort()
public void setHttpPort(java.lang.Integer httpPort)
@Internal public org.eclipse.jetty.server.Connector[] getConnectors()
public void setConnectors(org.eclipse.jetty.server.Connector[] connectors)
@Internal public org.eclipse.jetty.security.LoginService[] getUserRealms()
public void setUserRealms(org.eclipse.jetty.security.LoginService[] userRealms)
@Internal public org.eclipse.jetty.server.RequestLog getRequestLog()
public void setRequestLog(org.eclipse.jetty.server.RequestLog requestLog)
@OrderSensitive @InputFiles public java.lang.Iterable<java.io.File> getAdditionalRuntimeJars()
public void setAdditionalRuntimeJars(java.lang.Iterable<java.io.File> additionalRuntimeJars)