Interface MojoMetadataProvider.Context.FileSet
-
- Enclosing interface:
- MojoMetadataProvider.Context
public static interface MojoMetadataProvider.Context.FileSetHolds a set of files and directories and allows configuring theMojoMetadataProvider.Context.FileSet.NormalizationStrategy,MojoMetadataProvider.Context.FileSet.LineEndingHandlingandMojoMetadataProvider.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.21
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMojoMetadataProvider.Context.FileSet.EmptyDirectoryHandlingAllows controlling the sensitivity to the presence of empty directories in the source tree.static classMojoMetadataProvider.Context.FileSet.LineEndingHandlingAllows 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 classMojoMetadataProvider.Context.FileSet.NormalizationStrategyAllows 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.FileSetemptyDirectoryHandling(MojoMetadataProvider.Context.FileSet.EmptyDirectoryHandling emptyDirectoryHandling)Defines the handling of empty directories.MojoMetadataProvider.Context.FileSetexclude(java.lang.String... excludePatterns)Adds the given ANT-style exclude patterns to the file set.MojoMetadataProvider.Context.FileSetexclude(java.util.List<java.lang.String> excludePatterns)Adds the given ANT-style exclude patterns to the file set.MojoMetadataProvider.Context.FileSetexcludesProperty(java.lang.String excludePropertyName)Marks the given property as ANT-style exclude patterns for this file set.MojoMetadataProvider.Context.FileSetinclude(java.lang.String... includePatterns)Adds the given ANT-style include patterns to the file set.MojoMetadataProvider.Context.FileSetinclude(java.util.List<java.lang.String> includePatterns)Adds the given ANT-style include patterns to the file set.MojoMetadataProvider.Context.FileSetincludesProperty(java.lang.String includePropertyName)Marks the given property as ANT-style include patterns for this file set.MojoMetadataProvider.Context.FileSetlineEndingHandling(MojoMetadataProvider.Context.FileSet.LineEndingHandling lineEndingHandling)Defines the handling of line endings.MojoMetadataProvider.Context.FileSetnormalizationStrategy(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- 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
-
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
-
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- 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
-
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
-
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
-
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
-
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
-
-