Class WarOverlay

java.lang.Object
io.freefair.gradle.plugins.maven.war.WarOverlay

public class WarOverlay extends Object
  • Constructor Details

    • WarOverlay

      public WarOverlay(String name, War warTask)
  • Method Details

    • from

      public void from(Object object)
    • from

      public void from(Object object, groovy.lang.Closure configureClosure)
      Parameters:
      object - see source
      configureClosure - see configureClosure
    • provided

      public void provided()
    • provided

      public void provided(boolean provided)
    • setTargetPath

      public void setTargetPath(String targetPath)
      See Also:
    • 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)
    • setExcludes

      public void setExcludes(Iterable<String> excludes)
    • include

      public CopySpec include(String... includes)
    • include

      public CopySpec include(Iterable<String> includes)
    • 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(Iterable<String> excludes)
    • exclude

      public void exclude(Spec<FileTreeElement> excludeSpec)
    • exclude

      public void exclude(groovy.lang.Closure excludeSpec)
    • getIncludes

      public Set<String> getIncludes()
    • getExcludes

      public Set<String> getExcludes()
    • setIncludes

      public CopySpec setIncludes(Iterable<String> includes)
    • 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:
    • getConfigureClosure

      public groovy.lang.Closure getConfigureClosure()
      This Closure is passed to DependencyHandler.create(Object, Closure) when source is resolved as dependency.
      See Also:
    • isEnabled

      public boolean isEnabled()
    • isProvided

      public boolean isProvided()
    • isDeferProvidedConfiguration

      public boolean isDeferProvidedConfiguration()
      If set to true (default) the provided setting is applied to the War 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:
    • setConfigureClosure

      public void setConfigureClosure(groovy.lang.Closure configureClosure)
      This Closure is passed to DependencyHandler.create(Object, Closure) when source is resolved as dependency.
      See Also:
    • setEnabled

      public void setEnabled(boolean enabled)
    • setProvided

      public void setProvided(boolean provided)
    • setDeferProvidedConfiguration

      public void setDeferProvidedConfiguration(boolean deferProvidedConfiguration)
      If set to true (default) the provided setting is applied to the War 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