Package org.gradle.api.cache
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final MarkingStrategyMarking strategy that marks the cache directory with aCACHEDIR.TAGfile.static final MarkingStrategyMarking strategy that does not mark the cache directory.
- 
Method SummaryModifier and TypeMethodDescriptionvoidtryMarkCacheDirectory(File file) Try to mark the given cache directory.
- 
Field Details- 
CACHEDIR_TAGMarking strategy that marks the cache directory with aCACHEDIR.TAGfile.- See Also:
 
- 
NONEMarking strategy that does not mark the cache directory.
 
- 
- 
Method Details- 
tryMarkCacheDirectoryTry to mark the given cache directory. If an I/O error occurs, this method should not throw an error, but instead log the error at an appropriate level, and return.- Parameters:
- file- the cache directory to mark
 
 
-