Interface MojoMetadataProvider.Context.FileSet
- Enclosing interface:
MojoMetadataProvider.Context
public static interface MojoMetadataProvider.Context.FileSet
Holds a set of files and directories and allows configuring the
MojoMetadataProvider.Context.FileSet.NormalizationStrategy
, MojoMetadataProvider.Context.FileSet.LineEndingHandling
and MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling
.
Supports ANT-style include and exclude patterns:
* matches zero or more characters ? matches one character ** matches zero or more characters across directory levels
- Since:
- 1.15
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Allows controlling the sensitivity to the presence of empty directories in the source tree.static enum
Allows specifying whether line endings should be normalized for Build Cache checks, so that files that only differ by line endings will be considered identical.static enum
Allows specifying a way of ignoring changes to input files that are irrelevant for the goal execution. -
Method Summary
Modifier and TypeMethodDescriptionemptyDirectoryHandling
(MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling emptyDirectoryHandling) Defines the handling of empty directories.Adds the given ANT-style exclude patterns to the file set.Adds the given ANT-style exclude patterns to the file set.excludesProperty
(String excludePropertyName) Marks the given property as ANT-style exclude patterns for this file set.Adds the given ANT-style include patterns to the file set.Adds the given ANT-style include patterns to the file set.includesProperty
(String includePropertyName) Marks the given property as ANT-style include patterns for this file set.lineEndingHandling
(MojoMetadataProvider.Context.FileSet.LineEndingHandling lineEndingHandling) Defines the handling of line endings.normalizationStrategy
(MojoMetadataProvider.Context.FileSet.NormalizationStrategy normalizationStrategy) Defines the normalization strategy for this property.
-
Method Details
-
includesProperty
Marks the given property as ANT-style include patterns for this file set.- Parameters:
includePropertyName
- the name of the property to be marked as includes- Since:
- 1.15
- See Also:
-
include
Adds the given ANT-style include patterns to the file set.- Parameters:
includePatterns
- the ANT-style include patterns to be added- Since:
- 1.15
-
include
Adds the given ANT-style include patterns to the file set.- Parameters:
includePatterns
- the ANT-style include patterns to be added- Since:
- 1.15
-
excludesProperty
Marks the given property as ANT-style exclude patterns for this file set.- Parameters:
excludePropertyName
- the name of the property to be marked as excludes- Since:
- 1.15
- See Also:
-
exclude
Adds the given ANT-style exclude patterns to the file set.- Parameters:
excludePatterns
- the ANT-style exclude patterns to be added- Since:
- 1.15
-
exclude
Adds the given ANT-style exclude patterns to the file set.- Parameters:
excludePatterns
- the ANT-style exclude patterns to be added- Since:
- 1.15
-
normalizationStrategy
MojoMetadataProvider.Context.FileSet normalizationStrategy(MojoMetadataProvider.Context.FileSet.NormalizationStrategy normalizationStrategy) Defines the normalization strategy for this property.- Parameters:
normalizationStrategy
- the normalization strategy to be used for thisMojoMetadataProvider.Context.FileSet
- Since:
- 1.15
-
emptyDirectoryHandling
MojoMetadataProvider.Context.FileSet emptyDirectoryHandling(MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling emptyDirectoryHandling) Defines the handling of empty directories.- Parameters:
emptyDirectoryHandling
- the empty directory handling to be used for thisMojoMetadataProvider.Context.FileSet
- Since:
- 1.15
-
lineEndingHandling
MojoMetadataProvider.Context.FileSet lineEndingHandling(MojoMetadataProvider.Context.FileSet.LineEndingHandling lineEndingHandling) Defines the handling of line endings.- Parameters:
lineEndingHandling
- the line ending handling to be used for thisMojoMetadataProvider.Context.FileSet
- Since:
- 1.15
-