public static enum IncrementalRelativeFileSets.FileDeletionPolicy extends java.lang.Enum<IncrementalRelativeFileSets.FileDeletionPolicy>
For incremental tasks, currently Gradle does not provide information about whether a deletion is done on a normal file or a directory. Therefore, we use this class to either assume deletions to be done on normal files, or not allow deletions at all.
TODO: Once Gradle provides this information, we should remove this class and its usages.
| Enum Constant and Description |
|---|
ASSUME_NO_DELETED_DIRECTORIES
Deletions are assumed to be done on normal files, not directories.
|
DISALLOW_FILE_DELETIONS
Deletions of files or directories are not allowed.
|
| Modifier and Type | Method and Description |
|---|---|
static IncrementalRelativeFileSets.FileDeletionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IncrementalRelativeFileSets.FileDeletionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IncrementalRelativeFileSets.FileDeletionPolicy ASSUME_NO_DELETED_DIRECTORIES
public static final IncrementalRelativeFileSets.FileDeletionPolicy DISALLOW_FILE_DELETIONS
public static IncrementalRelativeFileSets.FileDeletionPolicy[] values()
for (IncrementalRelativeFileSets.FileDeletionPolicy c : IncrementalRelativeFileSets.FileDeletionPolicy.values()) System.out.println(c);
public static IncrementalRelativeFileSets.FileDeletionPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null