|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
class JettyRun extends AbstractJettyRunTask
The JettyRun task deploys an exploded web application to an embedded Jetty web container, without first requiring 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.
Field Summary |
---|
Fields inherited from class AbstractJettyRunTask | |
---|---|
consoleScanner, reload, scannerListeners |
Constructor Summary | |
JettyRun(Project project, java.lang.String name)
|
Method Summary | |
---|---|
void
|
applyJettyXml()
|
void
|
configureScanner()
|
void
|
configureWebApplication()
|
def
|
createServer()
|
void
|
finishConfigurationBeforeStart()
|
java.util.List
|
getClassPathFiles()
|
File
|
getClassesDirectory()
|
FileCollection
|
getConfiguration()
Returns the configuration to resolve the dependencies of the web application from. |
ContextHandler[]
|
getConfiguredContextHandlers()
|
java.util.List
|
getExtraScanTargets()
|
File
|
getJettyEnvXml()
|
File
|
getJettyEnvXmlFile()
|
ScanTargetPattern[]
|
getScanTargetPatterns()
|
File[]
|
getScanTargets()
|
File
|
getWebAppSourceDirectory()
|
File
|
getWebXml()
|
void
|
restartWebApp(boolean reconfigureScanner)
|
void
|
setClassPathFiles(java.util.List classPathFiles)
|
void
|
setClassesDirectory(File classesDirectory)
|
void
|
setConfiguration(FileCollection configuration)
Set the configuration to resolve the dependencies of the web application from. |
void
|
setContextHandlers(ContextHandler[] contextHandlers)
|
void
|
setExtraScanTargets(java.util.List 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 ConventionTask | |
---|---|
conv, conventionMapping, conventionMapping, conventionProperty, getConventionAwareHelper, getConventionMapping, setConventionAwareHelper, setConventionMapping |
Methods inherited from class DefaultTask | |
---|---|
leftShift, methodMissing, propertyMissing |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Constructor Detail |
---|
public JettyRun(Project project, java.lang.String name)
Method Detail |
---|
public void applyJettyXml()
public void configureScanner()
public void configureWebApplication()
public def createServer()
public void finishConfigurationBeforeStart()
public java.util.List getClassPathFiles()
public File getClassesDirectory()
public FileCollection getConfiguration()
public ContextHandler[] getConfiguredContextHandlers()
public java.util.List getExtraScanTargets()
public File getJettyEnvXml()
public File getJettyEnvXmlFile()
public ScanTargetPattern[] getScanTargetPatterns()
public File[] getScanTargets()
public File getWebAppSourceDirectory()
public File getWebXml()
public void restartWebApp(boolean reconfigureScanner)
public void setClassPathFiles(java.util.List classPathFiles)
public void setClassesDirectory(File classesDirectory)
public void setConfiguration(FileCollection configuration)
public void setContextHandlers(ContextHandler[] contextHandlers)
public void setExtraScanTargets(java.util.List extraScanTargets)
public void setJettyEnvXml(File jettyEnvXml)
public void setJettyEnvXmlFile(File jettyEnvXmlFile)
public void setScanTargetPatterns(ScanTargetPattern[] scanTargetPatterns)
public void setScanTargets(File[] scanTargets)
public void setWebAppSourceDirectory(File webAppSourceDirectory)
public void setWebXml(File webXml)
public void validateConfiguration()
Groovy Documentation