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 void
exclude(groovy.lang.Closure excludeSpec)
void
exclude(Iterable<String> excludes)
void
exclude(String... excludes)
void
exclude(Spec<FileTreeElement> excludeSpec)
void
from(Object object)
void
from(Object object, groovy.lang.Closure configureClosure)
String
getConfigurationName()
groovy.lang.Closure
getConfigureClosure()
ThisClosure
is passed toDependencyHandler.create(Object, Closure)
whensource
is resolved as dependency.Set<String>
getExcludes()
Set<String>
getIncludes()
String
getName()
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(Iterable<String> includes)
CopySpec
include(String... includes)
CopySpec
include(Spec<FileTreeElement> includeSpec)
void
into(Object destPath)
boolean
isDeferProvidedConfiguration()
If set to true (default) theprovided
setting is applied to theWar task
before its execution.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)
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)
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 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)
-
-
-
Method Detail
-
from
public void from(Object object)
-
from
public void from(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(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'-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
public 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. 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
-
-