public class JettyRunWar extends AbstractJettyRunTask
Deploys a WAR to an embedded Jetty web container.
Once started, the web container can be configured to run continuously, scanning for changes to the war file and automatically performing a hot redeploy when necessary.
Task.Namer
consoleScanner, PORT_SYSPROPERTY, reload, scannerListeners
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
JettyRunWar() |
Modifier and Type | Method and Description |
---|---|
void |
applyJettyXml() |
void |
configureScanner() |
void |
configureWebApplication()
Subclasses should invoke this to setup basic info on the webapp.
|
org.gradle.api.plugins.jetty.internal.JettyPluginServer |
createServer()
create a proxy that wraps a particular jetty version Server object.
|
void |
finishConfigurationBeforeStart() |
File |
getWebApp()
Returns the web application to deploy.
|
void |
restartWebApp(boolean reconfigureScanner) |
void |
setWebApp(File webApp) |
void |
validateConfiguration() |
findJettyWebXmlFile, getAdditionalRuntimeJars, getConnectors, getContextPath, getHttpPort, getJettyConfig, getOverrideWebXml, getReload, getRequestLog, getScanIntervalSeconds, getScanner, getScannerListeners, getServer, getStopKey, getStopPort, getUserRealms, getWebAppConfig, getWebDefaultXml, isDaemon, setAdditionalRuntimeJars, setConnectors, setContextPath, setDaemon, setHttpPort, setJettyConfig, setOverrideWebXml, setReload, setRequestLog, setScanIntervalSeconds, setScannerListeners, setServer, setStopKey, setStopPort, setUserRealms, setWebAppConfig, setWebDefaultXml, start, startConsoleScanner, startJetty, startJettyInternal
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public void configureWebApplication() throws Exception
AbstractJettyRunTask
configureWebApplication
in class AbstractJettyRunTask
Exception
public void validateConfiguration()
validateConfiguration
in class AbstractJettyRunTask
public void configureScanner()
configureScanner
in class AbstractJettyRunTask
public void restartWebApp(boolean reconfigureScanner) throws Exception
restartWebApp
in class AbstractJettyRunTask
Exception
public void finishConfigurationBeforeStart()
finishConfigurationBeforeStart
in class AbstractJettyRunTask
@InputFile public File getWebApp()
public void setWebApp(File webApp)
public void applyJettyXml() throws Exception
applyJettyXml
in class AbstractJettyRunTask
Exception
public org.gradle.api.plugins.jetty.internal.JettyPluginServer createServer() throws Exception
AbstractJettyRunTask
createServer
in class AbstractJettyRunTask
Exception