Class DirectorySnapshot
- java.lang.Object
-
- com.github.blindpirate.gogradle.core.cache.DirectorySnapshot
-
- All Implemented Interfaces:
java.io.Serializable
public class DirectorySnapshot extends java.lang.Object implements java.io.SerializableCalculates the hash value of all files in a directory as snapshot- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHash()booleanisUpToDate(java.io.File projectRoot, java.io.File targetDir)static DirectorySnapshotof(java.io.File projectRoot, java.io.File targetDir)
-
-
-
Method Detail
-
of
public static DirectorySnapshot of(java.io.File projectRoot, java.io.File targetDir)
-
isUpToDate
public boolean isUpToDate(java.io.File projectRoot, java.io.File targetDir)
-
getHash
public java.lang.String getHash()
-
-