Class WarOverlay
- java.lang.Object
-
- io.freefair.gradle.plugins.maven.war.WarOverlay
-
public class WarOverlay extends Object
-
-
Constructor Summary
Constructors Constructor Description WarOverlay(String name, War warTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexclude(groovy.lang.Closure excludeSpec)voidexclude(Iterable<String> excludes)voidexclude(String... excludes)voidexclude(Spec<FileTreeElement> excludeSpec)voidfrom(Object object)voidfrom(Object object, groovy.lang.Closure configureClosure)StringgetConfigurationName()groovy.lang.ClosuregetConfigureClosure()ThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis resolved as dependency.Set<String>getExcludes()Set<String>getIncludes()StringgetName()ObjectgetSource()The source of the overlay, this can be: An arbitraryAbstractArchiveTaskAn other Project which has the'war'-pluginapplied AFileinstance Anything that can be used as Dependency.org.gradle.api.internal.file.copy.CopySpecInternalgetWarCopySpec()WargetWarTask()CopySpecinclude(groovy.lang.Closure includeSpec)CopySpecinclude(Iterable<String> includes)CopySpecinclude(String... includes)CopySpecinclude(Spec<FileTreeElement> includeSpec)voidinto(Object destPath)booleanisDeferProvidedConfiguration()booleanisEnableCompilation()Enable (java-)compilation against the classes(WEB-INF/classes) and jars(WEB-INF/lib) of the overlaybooleanisEnabled()booleanisProvided()booleanisSkip()voidprovided()voidprovided(boolean provided)voidsetConfigureClosure(groovy.lang.Closure configureClosure)ThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis resolved as dependency.voidsetDeferProvidedConfiguration(boolean deferProvidedConfiguration)voidsetEnableCompilation(boolean enableCompilation)Enable (java-)compilation against the classes(WEB-INF/classes) and jars(WEB-INF/lib) of the overlayvoidsetEnabled(boolean enabled)voidsetExcludes(Iterable<String> excludes)CopySpecsetIncludes(Iterable<String> includes)voidsetInto(String destPath)voidsetProvided(boolean provided)voidsetSkip(boolean skip)voidsetSource(Object source)The source of the overlay, this can be: An arbitraryAbstractArchiveTaskAn other Project which has the'war'-pluginapplied AFileinstance Anything that can be used as Dependency.voidsetTargetPath(String targetPath)voidsetWarCopySpec(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec)
-
-
-
Method Detail
-
from
public void from(Object object)
-
from
public void from(Object object, groovy.lang.Closure configureClosure)
- Parameters:
object- seesourceconfigureClosure- seeconfigureClosure
-
provided
public void provided()
-
provided
public void provided(boolean provided)
-
setTargetPath
public void setTargetPath(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 String getConfigurationName()
-
setInto
public void setInto(String destPath)
-
into
public void into(Object destPath)
-
include
public CopySpec include(Spec<FileTreeElement> includeSpec)
-
include
public CopySpec include(groovy.lang.Closure includeSpec)
-
exclude
public void exclude(String... excludes)
-
exclude
public void exclude(Spec<FileTreeElement> excludeSpec)
-
exclude
public void exclude(groovy.lang.Closure excludeSpec)
-
getName
public String getName()
-
getWarTask
public War getWarTask()
-
getWarCopySpec
public org.gradle.api.internal.file.copy.CopySpecInternal getWarCopySpec()
-
getSource
public Object getSource()
The source of the overlay, this can be:- An arbitrary
AbstractArchiveTask - An other Project which has the
'war'-pluginapplied - A
Fileinstance - Anything that can be used as Dependency. See
DependencyHandler.create(Object)
- An arbitrary
-
getConfigureClosure
public groovy.lang.Closure getConfigureClosure()
ThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis 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(Object source)
The source of the overlay, this can be:- An arbitrary
AbstractArchiveTask - An other Project which has the
'war'-pluginapplied - A
Fileinstance - Anything that can be used as Dependency. See
DependencyHandler.create(Object)
- An arbitrary
-
setConfigureClosure
public void setConfigureClosure(groovy.lang.Closure configureClosure)
ThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis 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
-
-