Schnittstelle 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().

Seit:
8.1
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final MarkingStrategy
    Marking strategy that marks the cache directory with a CACHEDIR.TAG file.
    static final MarkingStrategy
    Marking strategy that does not mark the cache directory.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Try to mark the given cache directory.
  • Felddetails

  • Methodendetails

    • tryMarkCacheDirectory

      void tryMarkCacheDirectory(File file)
      Try 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.
      Parameter:
      file - the cache directory to mark