|
|||||||||
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 org.gradle.api.plugins.jetty.JettyRun
public class JettyRun
Deploys an exploded web application to an embedded Jetty web container. Does not require that the web application be assembled into a war, saving time during the development cycle.
Once started, the web container can be configured to run continuously, scanning for changes in the project and automatically performing a hot redeploy when necessary. This allows the developer to concentrate on coding changes to the project using their IDE of choice and have those changes immediately and transparently reflected in the running web container, eliminating development time that is wasted on rebuilding, reassembling and redeploying.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.gradle.api.Task |
---|
Task.Namer |
Field Summary |
---|
Fields inherited from class org.gradle.api.plugins.jetty.AbstractJettyRunTask |
---|
consoleScanner, PORT_SYSPROPERTY, reload, scannerListeners |
Fields inherited from interface org.gradle.api.Task |
---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
Constructor Summary | |
---|---|
JettyRun()
|
Method Summary | |
---|---|
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()
|
FileCollection |
getClasspath()
Returns the classpath for the web application. |
List<File> |
getClassPathFiles()
|
org.mortbay.jetty.handler.ContextHandler[] |
getConfiguredContextHandlers()
|
List<File> |
getExtraScanTargets()
|
File |
getJettyEnvXml()
|
File |
getJettyEnvXmlFile()
|
ScanTargetPattern[] |
getScanTargetPatterns()
|
File[] |
getScanTargets()
|
File |
getWebAppSourceDirectory()
Returns the directory containing the web application source files. |
File |
getWebXml()
Returns the web.xml file to use. |
void |
restartWebApp(boolean reconfigureScanner)
|
void |
setClasspath(FileCollection classpath)
Set the classpath for the web application. |
void |
setClassPathFiles(List<File> classPathFiles)
|
void |
setContextHandlers(org.mortbay.jetty.handler.ContextHandler[] contextHandlers)
|
void |
setExtraScanTargets(List<File> extraScanTargets)
|
void |
setJettyEnvXml(File jettyEnvXml)
|
void |
setJettyEnvXmlFile(File jettyEnvXmlFile)
|
void |
setScanTargetPatterns(ScanTargetPattern[] scanTargetPatterns)
|
void |
setScanTargets(File[] scanTargets)
|
void |
setWebAppSourceDirectory(File webAppSourceDirectory)
|
void |
setWebXml(File webXml)
|
void |
validateConfiguration()
|
Methods inherited from class org.gradle.api.internal.ConventionTask |
---|
conventionMapping, getConventionMapping, setConventionMapping |
Methods inherited from class org.gradle.api.internal.AbstractTask |
---|
addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, 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, getValidators, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JettyRun()
Method Detail |
---|
public void validateConfiguration()
validateConfiguration
in class AbstractJettyRunTask
public void configureWebApplication() throws Exception
AbstractJettyRunTask
configureWebApplication
in class AbstractJettyRunTask
Exception
public void configureScanner()
configureScanner
in class AbstractJettyRunTask
public void restartWebApp(boolean reconfigureScanner) throws Exception
restartWebApp
in class AbstractJettyRunTask
Exception
public void finishConfigurationBeforeStart() throws Exception
finishConfigurationBeforeStart
in class AbstractJettyRunTask
Exception
public void applyJettyXml() throws Exception
applyJettyXml
in class AbstractJettyRunTask
Exception
public org.gradle.api.plugins.jetty.internal.JettyPluginServer createServer()
AbstractJettyRunTask
createServer
in class AbstractJettyRunTask
public File getJettyEnvXml()
public void setJettyEnvXml(File jettyEnvXml)
public File getWebXml()
web.xml
file to use. When null
, no web.xml
file is used.
public void setWebXml(File webXml)
public File getWebAppSourceDirectory()
public void setWebAppSourceDirectory(File webAppSourceDirectory)
public File[] getScanTargets()
public void setScanTargets(File[] scanTargets)
public List<File> getExtraScanTargets()
public void setExtraScanTargets(List<File> extraScanTargets)
public File getJettyEnvXmlFile()
public void setJettyEnvXmlFile(File jettyEnvXmlFile)
public List<File> getClassPathFiles()
public void setClassPathFiles(List<File> classPathFiles)
public ScanTargetPattern[] getScanTargetPatterns()
public void setScanTargetPatterns(ScanTargetPattern[] scanTargetPatterns)
public org.mortbay.jetty.handler.ContextHandler[] getConfiguredContextHandlers()
public void setContextHandlers(org.mortbay.jetty.handler.ContextHandler[] contextHandlers)
public FileCollection getClasspath()
public void setClasspath(FileCollection classpath)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |