Enum MojoMetadataProvider.Context.FileSet.LineEndingHandling
- java.lang.Object
-
- java.lang.Enum<MojoMetadataProvider.Context.FileSet.LineEndingHandling>
-
- com.gradle.maven.extension.api.cache.MojoMetadataProvider.Context.FileSet.LineEndingHandling
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MojoMetadataProvider.Context.FileSet.LineEndingHandling>
- Enclosing interface:
- MojoMetadataProvider.Context.FileSet
public static enum MojoMetadataProvider.Context.FileSet.LineEndingHandling extends java.lang.Enum<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.- Since:
- 1.15
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MojoMetadataProvider.Context.FileSet.LineEndingHandling
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MojoMetadataProvider.Context.FileSet.LineEndingHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final MojoMetadataProvider.Context.FileSet.LineEndingHandling DEFAULT
No normalization.- Since:
- 1.15
-
NORMALIZE
public static final MojoMetadataProvider.Context.FileSet.LineEndingHandling NORMALIZE
Normalize line endings for text files with ASCII encoding or its supersets.- Since:
- 1.15
-
-
Method Detail
-
values
public static MojoMetadataProvider.Context.FileSet.LineEndingHandling[] 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.LineEndingHandling c : MojoMetadataProvider.Context.FileSet.LineEndingHandling.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.LineEndingHandling 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
-
-