Class LayeredSpec.IntoLayerSpec

java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec.IntoLayerSpec
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LayeredSpec.DependenciesIntoLayerSpec
Enclosing class:
LayeredSpec

public static class LayeredSpec.IntoLayerSpec extends Object implements Serializable
Spec that controls the content that should be part of a particular layer.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    IntoLayerSpec(String intoLayer)
    Creates a new IntoLayerSpec that will control the content of the given layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exclude(String... patterns)
    Adds patterns that control the content that is excluded from the layer.
    void
    include(String... patterns)
    Adds patterns that control the content that is included in the layer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IntoLayerSpec

      public IntoLayerSpec(String intoLayer)
      Creates a new IntoLayerSpec that will control the content of the given layer.
      Parameters:
      intoLayer - the layer
  • Method Details

    • include

      public void include(String... patterns)
      Adds patterns that control the content that is included in the layer. If no includes are specified then all content is included. If includes are specified then content must match an inclusion and not match any exclusions to be included.
      Parameters:
      patterns - the patterns to be included
    • exclude

      public void exclude(String... patterns)
      Adds patterns that control the content that is excluded from the layer. If no excludes a specified no content is excluded. If exclusions are specified then any content that matches an exclusion will be excluded irrespective of whether it matches an include.
      Parameters:
      patterns - the patterns to be excluded