Enum ChangeDetection

java.lang.Object
java.lang.Enum<ChangeDetection>
org.apache.maven.shared.filtering.ChangeDetection
All Implemented Interfaces:
Serializable, Comparable<ChangeDetection>, java.lang.constant.Constable

public enum ChangeDetection extends Enum<ChangeDetection>
Change detection strategies: to decide whether an existing target file needs to be overwritten or not.
Since:
3.5.0
  • Enum Constant Details

    • TIMESTAMP

      public static final ChangeDetection TIMESTAMP
      Only consider the file timestamp to determine is overwrite of existing file needed. This was default before 3.4.0.
    • CONTENT

      public static final ChangeDetection CONTENT
      Only consider the content of the file to determine is overwrite of existing file needed. This is the default since 3.4.0.
    • TIMESTAMP_AND_CONTENT

      public static final ChangeDetection TIMESTAMP_AND_CONTENT
      Combine timestamp and content change detection for existing file.
    • ALWAYS

      public static final ChangeDetection ALWAYS
      Disable change detection; always overwrite existing file.
    • NEVER

      public static final ChangeDetection NEVER
      Disable change detection; never overwrite existing file.
  • Method Details

    • values

      public static ChangeDetection[] 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

      public static ChangeDetection valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null