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.NamerconsoleScanner, PORT_SYSPROPERTY, reload, scannerListenersTASK_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, startJettyInternalconventionMapping, conventionMapping, getConventionMappingaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, 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, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic void configureWebApplication()
throws Exception
AbstractJettyRunTaskconfigureWebApplication in class AbstractJettyRunTaskExceptionpublic void validateConfiguration()
validateConfiguration in class AbstractJettyRunTaskpublic void configureScanner()
configureScanner in class AbstractJettyRunTaskpublic void restartWebApp(boolean reconfigureScanner)
throws Exception
restartWebApp in class AbstractJettyRunTaskExceptionpublic void finishConfigurationBeforeStart()
finishConfigurationBeforeStart in class AbstractJettyRunTask@InputFile public File getWebApp()
public void setWebApp(File webApp)
public void applyJettyXml()
throws Exception
applyJettyXml in class AbstractJettyRunTaskExceptionpublic org.gradle.api.plugins.jetty.internal.JettyPluginServer createServer()
throws Exception
AbstractJettyRunTaskcreateServer in class AbstractJettyRunTaskException