public class WarOverlay extends Object
| Constructor and Description |
|---|
WarOverlay(String name,
War warTask) |
| Modifier and Type | Method and Description |
|---|---|
void |
exclude(groovy.lang.Closure excludeSpec) |
void |
exclude(Iterable<String> excludes) |
void |
exclude(Spec<FileTreeElement> excludeSpec) |
void |
exclude(String... excludes) |
void |
from(Object object) |
void |
from(Object object,
groovy.lang.Closure configureClosure) |
String |
getConfigurationName() |
groovy.lang.Closure |
getConfigureClosure()
This
Closure is passed to DependencyHandler.create(Object, Closure)
when source is resolved as dependency. |
Set<String> |
getExcludes() |
Set<String> |
getIncludes() |
String |
getName() |
Object |
getSource()
The source of the overlay, this can be:
An arbitrary
AbstractArchiveTask
An other Project which has the 'war'-plugin applied
A File instance
Anything that can be used as Dependency. |
org.gradle.api.internal.file.copy.CopySpecInternal |
getWarCopySpec() |
War |
getWarTask() |
CopySpec |
include(groovy.lang.Closure includeSpec) |
CopySpec |
include(Iterable<String> includes) |
CopySpec |
include(Spec<FileTreeElement> includeSpec) |
CopySpec |
include(String... includes) |
void |
into(Object destPath) |
boolean |
isDeferProvidedConfiguration()
|
boolean |
isEnableCompilation()
Enable (java-)compilation against the classes(
WEB-INF/classes) and jars(WEB-INF/lib) of the overlay |
boolean |
isEnabled() |
boolean |
isProvided() |
boolean |
isSkip() |
void |
provided() |
void |
provided(boolean provided) |
void |
setConfigureClosure(groovy.lang.Closure configureClosure)
This
Closure is passed to DependencyHandler.create(Object, Closure)
when source is resolved as dependency. |
void |
setDeferProvidedConfiguration(boolean deferProvidedConfiguration)
|
void |
setEnableCompilation(boolean enableCompilation)
Enable (java-)compilation against the classes(
WEB-INF/classes) and jars(WEB-INF/lib) of the overlay |
void |
setEnabled(boolean enabled) |
void |
setExcludes(Iterable<String> excludes) |
CopySpec |
setIncludes(Iterable<String> includes) |
void |
setInto(String destPath) |
void |
setProvided(boolean provided) |
void |
setSkip(boolean skip) |
void |
setSource(Object source)
The source of the overlay, this can be:
An arbitrary
AbstractArchiveTask
An other Project which has the 'war'-plugin applied
A File instance
Anything that can be used as Dependency. |
void |
setTargetPath(String targetPath) |
void |
setWarCopySpec(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec) |
public void from(Object object)
public void from(Object object, groovy.lang.Closure configureClosure)
object - see sourceconfigureClosure - see configureClosurepublic void provided()
public void provided(boolean provided)
public void setTargetPath(String targetPath)
into(java.lang.Object)public void setSkip(boolean skip)
enabledpublic boolean isSkip()
enabledpublic String getConfigurationName()
public void setInto(String destPath)
public void into(Object destPath)
public CopySpec include(Spec<FileTreeElement> includeSpec)
public CopySpec include(groovy.lang.Closure includeSpec)
public void exclude(String... excludes)
public void exclude(Spec<FileTreeElement> excludeSpec)
public void exclude(groovy.lang.Closure excludeSpec)
public String getName()
public War getWarTask()
public org.gradle.api.internal.file.copy.CopySpecInternal getWarCopySpec()
public Object getSource()
AbstractArchiveTask'war'-plugin appliedFile instanceDependencyHandler.create(Object)public groovy.lang.Closure getConfigureClosure()
Closure is passed to DependencyHandler.create(Object, Closure)
when source is resolved as dependency.public boolean isEnabled()
public boolean isProvided()
public boolean isDeferProvidedConfiguration()
public boolean isEnableCompilation()
WEB-INF/classes) and jars(WEB-INF/lib) of the overlaypublic void setWarCopySpec(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec)
public void setSource(Object source)
AbstractArchiveTask'war'-plugin appliedFile instanceDependencyHandler.create(Object)public void setConfigureClosure(groovy.lang.Closure configureClosure)
Closure is passed to DependencyHandler.create(Object, Closure)
when source is resolved as dependency.public void setEnabled(boolean enabled)
public void setProvided(boolean provided)
public void setDeferProvidedConfiguration(boolean deferProvidedConfiguration)
public void setEnableCompilation(boolean enableCompilation)
WEB-INF/classes) and jars(WEB-INF/lib) of the overlay