|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractCopyTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
org.gradle.api.tasks.bundling.Zip
org.gradle.api.tasks.bundling.Jar
org.gradle.api.tasks.bundling.War
class War extends Jar
Assembles a WAR archive.
| Field Summary | |
|---|---|
static String |
WAR_EXTENSION
|
| Fields inherited from class Jar | |
|---|---|
| DEFAULT_EXTENSION |
| Fields inherited from class Zip | |
|---|---|
| ZIP_EXTENSION |
| Constructor Summary | |
War()
|
|
| Method Summary | |
|---|---|
void
|
classpath(Object... classpath)
Adds files to the classpath to include in the WAR archive. |
FileCollection
|
getClasspath()
Returns the classpath to include in the WAR archive. |
CopySpec
|
getWebInf()
|
File
|
getWebXml()
Returns the web.xml file to include in the WAR archive. |
void
|
setClasspath(Object classpath)
Sets the classpath to include in the WAR archive. |
void
|
setWebXml(File webXml)
Sets the web.xml file to include in the WAR archive. |
CopySpec
|
webInf(Closure configureClosure)
Adds some content to the WEB-INF directory for this WAR archive. |
| Methods inherited from class Jar | |
|---|---|
| getManifest, getMetaInf, manifest, metaInf, setManifest |
| Methods inherited from class Zip | |
|---|---|
| getCopyAction, getEntryCompression, setEntryCompression |
| Methods inherited from class AbstractArchiveTask | |
|---|---|
| getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, getExtension, getVersion, into, into, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setVersion |
| Methods inherited from class AbstractCopyTask | |
|---|---|
| configureRootSpec, copy, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filter, filter, filter, from, from, getCopyAction, getDefaultSource, getDirMode, getExcludes, getFileMode, getIncludeEmptyDirs, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with |
| Field Detail |
|---|
public static final String WAR_EXTENSION
| Constructor Detail |
|---|
War()
| Method Detail |
|---|
void classpath(Object... classpath)
classpath - The files to add. These are evaluated as per Project.files
@InputFiles @Optional FileCollection getClasspath()
CopySpec getWebInf()
@InputFile @Optional File getWebXml()
void setClasspath(Object classpath)
classpath - The classpath. Must not be null.
void setWebXml(File webXml)
webXml - The web.xml file. Maybe null.
CopySpec webInf(Closure configureClosure)
The given closure is executed to configure a CopySpec. The CopySpec is passed to the closure as its delegate.
configureClosure - The closure to execute
Gradle API 1.5