Class WarOverlay
- java.lang.Object
-
- io.freefair.gradle.plugins.maven.war.WarOverlay
-
public class WarOverlay extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WarOverlay(java.lang.String name, War warTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exclude(groovy.lang.Closure excludeSpec)
void
exclude(java.lang.Iterable<java.lang.String> excludes)
void
exclude(java.lang.String... excludes)
void
exclude(Spec<FileTreeElement> excludeSpec)
void
from(java.lang.Object object)
void
from(java.lang.Object object, groovy.lang.Closure configureClosure)
java.lang.String
getConfigurationName()
groovy.lang.Closure
getConfigureClosure()
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
is resolved as dependency.java.util.Set<java.lang.String>
getExcludes()
java.util.Set<java.lang.String>
getIncludes()
java.lang.String
getName()
java.lang.Object
getSource()
The source of the overlay, this can be: An arbitraryAbstractArchiveTask
An other Project which has the'war'-plugin
applied AFile
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(java.lang.Iterable<java.lang.String> includes)
CopySpec
include(java.lang.String... includes)
CopySpec
include(Spec<FileTreeElement> includeSpec)
void
into(java.lang.Object destPath)
boolean
isDeferProvidedConfiguration()
boolean
isEnableCompilation()
Enable (java-)compilation against the classes(WEB-INF/classes
) and jars(WEB-INF/lib
) of the overlayboolean
isEnabled()
boolean
isProvided()
boolean
isSkip()
void
provided()
void
provided(boolean provided)
void
setConfigureClosure(groovy.lang.Closure configureClosure)
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
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 overlayvoid
setEnabled(boolean enabled)
void
setExcludes(java.lang.Iterable<java.lang.String> excludes)
CopySpec
setIncludes(java.lang.Iterable<java.lang.String> includes)
void
setInto(java.lang.String destPath)
void
setProvided(boolean provided)
void
setSkip(boolean skip)
void
setSource(java.lang.Object source)
The source of the overlay, this can be: An arbitraryAbstractArchiveTask
An other Project which has the'war'-plugin
applied AFile
instance Anything that can be used as Dependency.void
setTargetPath(java.lang.String targetPath)
void
setWarCopySpec(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec)
-
-
-
Constructor Detail
-
WarOverlay
public WarOverlay(java.lang.String name, War warTask)
-
-
Method Detail
-
from
public void from(java.lang.Object object)
-
from
public void from(java.lang.Object object, groovy.lang.Closure configureClosure)
- Parameters:
object
- seesource
configureClosure
- seeconfigureClosure
-
provided
public void provided()
-
provided
public void provided(boolean provided)
-
setTargetPath
public void setTargetPath(java.lang.String targetPath)
- See Also:
into(java.lang.Object)
-
setSkip
public void setSkip(boolean skip)
- See Also:
enabled
-
isSkip
public boolean isSkip()
- See Also:
enabled
-
getConfigurationName
public java.lang.String getConfigurationName()
-
setInto
public void setInto(java.lang.String destPath)
-
into
public void into(java.lang.Object destPath)
-
setExcludes
public void setExcludes(java.lang.Iterable<java.lang.String> excludes)
-
include
public CopySpec include(java.lang.String... includes)
-
include
public CopySpec include(java.lang.Iterable<java.lang.String> includes)
-
include
public CopySpec include(Spec<FileTreeElement> includeSpec)
-
include
public CopySpec include(groovy.lang.Closure includeSpec)
-
exclude
public void exclude(java.lang.String... excludes)
-
exclude
public void exclude(java.lang.Iterable<java.lang.String> excludes)
-
exclude
public void exclude(Spec<FileTreeElement> excludeSpec)
-
exclude
public void exclude(groovy.lang.Closure excludeSpec)
-
getIncludes
public java.util.Set<java.lang.String> getIncludes()
-
getExcludes
public java.util.Set<java.lang.String> getExcludes()
-
setIncludes
public CopySpec setIncludes(java.lang.Iterable<java.lang.String> includes)
-
getName
public java.lang.String getName()
-
getWarTask
public War getWarTask()
-
getWarCopySpec
public org.gradle.api.internal.file.copy.CopySpecInternal getWarCopySpec()
-
getSource
public java.lang.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. See
DependencyHandler.create(Object)
- An arbitrary
-
getConfigureClosure
public groovy.lang.Closure getConfigureClosure()
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
is resolved as dependency.
-
isEnabled
public boolean isEnabled()
-
isProvided
public boolean isProvided()
-
isDeferProvidedConfiguration
public boolean isDeferProvidedConfiguration()
-
isEnableCompilation
public boolean isEnableCompilation()
Enable (java-)compilation against the classes(WEB-INF/classes
) and jars(WEB-INF/lib
) of the overlay
-
setWarCopySpec
public void setWarCopySpec(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec)
-
setSource
public void setSource(java.lang.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. See
DependencyHandler.create(Object)
- An arbitrary
-
setConfigureClosure
public void setConfigureClosure(groovy.lang.Closure configureClosure)
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
is resolved as dependency.
-
setEnabled
public void setEnabled(boolean enabled)
-
setProvided
public void setProvided(boolean provided)
-
setDeferProvidedConfiguration
public void setDeferProvidedConfiguration(boolean deferProvidedConfiguration)
-
setEnableCompilation
public void setEnableCompilation(boolean enableCompilation)
Enable (java-)compilation against the classes(WEB-INF/classes
) and jars(WEB-INF/lib
) of the overlay
-
-