Class WarOverlay
java.lang.Object
io.freefair.gradle.plugins.maven.war.WarOverlay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exclude
(groovy.lang.Closure excludeSpec) void
void
void
exclude
(Spec<FileTreeElement> excludeSpec) void
void
groovy.lang.Closure
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
is resolved as dependency.getName()
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
include
(groovy.lang.Closure includeSpec) include
(Spec<FileTreeElement> includeSpec) void
boolean
If set to true (default) theprovided
setting is applied to theWar task
before its execution.boolean
Enable (java-)compilation against the classes(WEB-INF/classes
) and jars(WEB-INF/lib
) of the overlayboolean
boolean
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) If set to true (default) theprovided
setting is applied to theWar task
before its execution.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
(Iterable<String> excludes) setIncludes
(Iterable<String> includes) void
void
setProvided
(boolean provided) void
setSkip
(boolean skip) void
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
(String targetPath) void
setWarCopySpec
(org.gradle.api.internal.file.copy.CopySpecInternal warCopySpec)
-
Constructor Details
-
WarOverlay
-
-
Method Details
-
from
-
from
- Parameters:
object
- seesource
configureClosure
- 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'-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()If set to true (default) theprovided
setting is applied to theWar task
before 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'-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) If set to true (default) theprovided
setting is applied to theWar task
before 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
-