Class WarOverlay
java.lang.Object
io.freefair.gradle.plugins.maven.war.WarOverlay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexclude(groovy.lang.Closure excludeSpec) voidvoidvoidexclude(Spec<FileTreeElement> excludeSpec) voidvoidgroovy.lang.ClosureThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis resolved as dependency.getName()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.CopySpecInternalinclude(groovy.lang.Closure includeSpec) include(Spec<FileTreeElement> includeSpec) voidbooleanIf set to true (default) theprovidedsetting is applied to theWar taskbefore its execution.booleanEnable (java-)compilation against the classes(WEB-INF/classes) and jars(WEB-INF/lib) of the overlaybooleanbooleanbooleanisSkip()voidprovided()voidprovided(boolean provided) voidsetConfigureClosure(groovy.lang.Closure configureClosure) ThisClosureis passed toDependencyHandler.create(Object, Closure)whensourceis resolved as dependency.voidsetDeferProvidedConfiguration(boolean deferProvidedConfiguration) If set to true (default) theprovidedsetting is applied to theWar taskbefore its execution.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) setIncludes(Iterable<String> includes) voidvoidsetProvided(boolean provided) voidsetSkip(boolean skip) voidThe 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)
-
Constructor Details
-
WarOverlay
-
-
Method Details
-
from
-
from
- Parameters:
object- seesourceconfigureClosure- seeconfigureClosure
-
provided
public void provided() -
provided
public void provided(boolean provided) -
setTargetPath
- See Also:
-
setSkip
public void setSkip(boolean skip) - See Also:
-
enabled
-
isSkip
public boolean isSkip()- See Also:
-
enabled
-
getConfigurationName
-
setInto
-
into
-
setExcludes
-
include
-
include
-
include
-
include
-
exclude
-
exclude
-
exclude
-
exclude
public void exclude(groovy.lang.Closure excludeSpec) -
getIncludes
-
getExcludes
-
setIncludes
-
getName
-
getWarTask
-
getWarCopySpec
public org.gradle.api.internal.file.copy.CopySpecInternal getWarCopySpec() -
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()If set to true (default) theprovidedsetting is applied to theWar taskbefore its execution. If set to false, the task will be completely configured at configuration time.This can be used to get auto-competition in some IDE's (IntelliJ)
-
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
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) If set to true (default) theprovidedsetting is applied to theWar taskbefore its execution. If set to false, the task will be completely configured at configuration time.This can be used to get auto-competition in some IDE's (IntelliJ)
-
setEnableCompilation
public void setEnableCompilation(boolean enableCompilation) Enable (java-)compilation against the classes(WEB-INF/classes) and jars(WEB-INF/lib) of the overlay
-