Interface MojoMetadataProvider.Context.FileSet
-
- Enclosing interface:
- MojoMetadataProvider.Context
public static interface MojoMetadataProvider.Context.FileSet
Holds a set of files and directories and allows configuring theMojoMetadataProvider.Context.FileSet.NormalizationStrategy
,MojoMetadataProvider.Context.FileSet.LineEndingHandling
andMojoMetadataProvider.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
Nested Classes Modifier and Type Interface Description static class
MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling
Allows controlling the sensitivity to the presence of empty directories in the source tree.static class
MojoMetadataProvider.Context.FileSet.LineEndingHandling
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 class
MojoMetadataProvider.Context.FileSet.NormalizationStrategy
Allows specifying a way of ignoring changes to input files that are irrelevant for the goal execution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MojoMetadataProvider.Context.FileSet
emptyDirectoryHandling(MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling emptyDirectoryHandling)
Defines the handling of empty directories.MojoMetadataProvider.Context.FileSet
exclude(java.lang.String... excludePatterns)
Adds the given ANT-style exclude patterns to the file set.MojoMetadataProvider.Context.FileSet
exclude(java.util.List<java.lang.String> excludePatterns)
Adds the given ANT-style exclude patterns to the file set.MojoMetadataProvider.Context.FileSet
excludesProperty(java.lang.String excludePropertyName)
Marks the given property as ANT-style exclude patterns for this file set.MojoMetadataProvider.Context.FileSet
include(java.lang.String... includePatterns)
Adds the given ANT-style include patterns to the file set.MojoMetadataProvider.Context.FileSet
include(java.util.List<java.lang.String> includePatterns)
Adds the given ANT-style include patterns to the file set.MojoMetadataProvider.Context.FileSet
includesProperty(java.lang.String includePropertyName)
Marks the given property as ANT-style include patterns for this file set.MojoMetadataProvider.Context.FileSet
lineEndingHandling(MojoMetadataProvider.Context.FileSet.LineEndingHandling lineEndingHandling)
Defines the handling of line endings.MojoMetadataProvider.Context.FileSet
normalizationStrategy(MojoMetadataProvider.Context.FileSet.NormalizationStrategy normalizationStrategy)
Defines the normalization strategy for this property.
-
-
-
Method Detail
-
includesProperty
MojoMetadataProvider.Context.FileSet includesProperty(java.lang.String includePropertyName)
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(List)
-
include
MojoMetadataProvider.Context.FileSet include(java.util.List<java.lang.String> includePatterns)
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
MojoMetadataProvider.Context.FileSet include(java.lang.String... includePatterns)
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
MojoMetadataProvider.Context.FileSet excludesProperty(java.lang.String excludePropertyName)
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(List)
-
exclude
MojoMetadataProvider.Context.FileSet exclude(java.util.List<java.lang.String> excludePatterns)
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
MojoMetadataProvider.Context.FileSet exclude(java.lang.String... excludePatterns)
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
-
-