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:
java.io.Serializable
,java.lang.Comparable<MojoMetadataProvider.Context.FileSet.NormalizationStrategy>
- Enclosing interface:
- MojoMetadataProvider.Context.FileSet
public static enum MojoMetadataProvider.Context.FileSet.NormalizationStrategy extends java.lang.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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE_PATH
Considers the full content of files as well as their absolute path.CLASSPATH
Considers only the information relevant for running Java code.COMPILE_CLASSPATH
Considers only the information relevant for compiling Java code.IGNORED_PATH
Considers the full content of files, but ignores their path.NAME_ONLY
Considers the full content of files, but only tracks their name and not the rest of their path.RELATIVE_PATH
Considers the full content of files, but only tracks their path relative to their root directory.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MojoMetadataProvider.Context.FileSet.NormalizationStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MojoMetadataProvider.Context.FileSet.NormalizationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE_PATH
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy 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
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy CLASSPATH
Considers only the information relevant for running Java code.- Since:
- 1.15
-
COMPILE_CLASSPATH
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy 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
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy IGNORED_PATH
Considers the full content of files, but ignores their path.- Since:
- 1.15
-
NAME_ONLY
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy 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
public static final MojoMetadataProvider.Context.FileSet.NormalizationStrategy 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 Detail
-
values
public static MojoMetadataProvider.Context.FileSet.NormalizationStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MojoMetadataProvider.Context.FileSet.NormalizationStrategy c : MojoMetadataProvider.Context.FileSet.NormalizationStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MojoMetadataProvider.Context.FileSet.NormalizationStrategy valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-