Package org.gradle.api.cache
Interface MarkingStrategy
-
@Incubating public interface MarkingStrategy
Represents a method of marking a cache directory. This is used to mark Gradle's cache directories.You may implement your own marking strategy by implementing this interface and setting
CacheConfigurations.getMarkingStrategy()
.- Since:
- 8.1
-
-
Field Summary
Fields Modifier and Type Field Description static MarkingStrategy
CACHEDIR_TAG
Marking strategy that marks the cache directory with aCACHEDIR.TAG
file.static MarkingStrategy
NONE
Marking strategy that does not mark the cache directory.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
tryMarkCacheDirectory(java.io.File file)
Try to mark the given cache directory.
-
-
-
Field Detail
-
CACHEDIR_TAG
static final MarkingStrategy CACHEDIR_TAG
Marking strategy that marks the cache directory with aCACHEDIR.TAG
file.- See Also:
- Cache Directory Tagging Specification
-
NONE
static final MarkingStrategy NONE
Marking strategy that does not mark the cache directory.
-
-