Enum MojoMetadataProvider.Context.FileSet.NormalizationStrategy
java.lang.Object
java.lang.Enum<MojoMetadataProvider.Context.FileSet.NormalizationStrategy>
com.gradle.maven.extension.api.cache.MojoMetadataProvider.Context.FileSet.NormalizationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<MojoMetadataProvider.Context.FileSet.NormalizationStrategy>
,java.lang.constant.Constable
- Enclosing interface:
MojoMetadataProvider.Context.FileSet
public static enum MojoMetadataProvider.Context.FileSet.NormalizationStrategy
extends Enum<MojoMetadataProvider.Context.FileSet.NormalizationStrategy>
Allows specifying a way of ignoring changes to input files that are irrelevant for the goal execution.
- Since:
- 1.15
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConsiders the full content of files as well as their absolute path.Considers only the information relevant for running Java code.Considers only the information relevant for compiling Java code.Considers the full content of files, but ignores their path.Considers the full content of files, but only tracks their name and not the rest of their path.Considers the full content of files, but only tracks their path relative to their root directory. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE_PATH
Considers the full content of files as well as their absolute path. Using this strategy is strongly discouraged, as it means that cache hits across different machines are generally impossible, since the project directory (and thus all absolute paths) are usually different.- Since:
- 1.15
-
CLASSPATH
Considers only the information relevant for running Java code.- Since:
- 1.15
-
COMPILE_CLASSPATH
Considers only the information relevant for compiling Java code. This means for example that only class files are considered and private implementation details like method bodies are ignored.- Since:
- 1.15
-
IGNORED_PATH
Considers the full content of files, but ignores their path.- Since:
- 1.15
-
NAME_ONLY
Considers the full content of files, but only tracks their name and not the rest of their path.- Since:
- 1.15
-
RELATIVE_PATH
Considers the full content of files, but only tracks their path relative to their root directory. The root directory is the directory that was added as an input. The path of that root directory itself is ignored.- Since:
- 1.15
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-