|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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()
|
Method Summary | |
---|---|
void
|
applyJettyXml()
|
void
|
configureScanner()
|
void
|
configureWebApplication()
|
def
|
createServer()
|
void
|
finishConfigurationBeforeStart()
|
java.util.List
|
getClassPathFiles()
|
FileCollection
|
getClasspath()
Returns the classpath for the web application. |
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
|
setClasspath(FileCollection classpath)
Set the classpath for the web application |
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()
|
Constructor Detail |
---|
JettyRun()
Method Detail |
---|
public void applyJettyXml()
public void configureScanner()
public void configureWebApplication()
public def createServer()
public void finishConfigurationBeforeStart()
public java.util.List getClassPathFiles()
@InputFiles public FileCollection getClasspath()
public ContextHandler[] getConfiguredContextHandlers()
public java.util.List getExtraScanTargets()
@InputFile @Optional public File getJettyEnvXml()
@InputFile @Optional public File getJettyEnvXmlFile()
public ScanTargetPattern[] getScanTargetPatterns()
public File[] getScanTargets()
@InputDirectory public File getWebAppSourceDirectory()
public File getWebXml()
public void restartWebApp(boolean reconfigureScanner)
public void setClassPathFiles(java.util.List classPathFiles)
public void setClasspath(FileCollection classpath)
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