This commit is contained in:
Eugene Yokota 2015-07-10 11:16:19 -04:00
parent 22c743cf8a
commit fdf8ee5146
1 changed files with 2 additions and 2 deletions

View File

@ -1411,13 +1411,13 @@ object Classpaths {
val outCacheFile = cacheFile / "output"
def skipWork: In => UpdateReport =
Tracked.lastOutputWithJson[In, UpdateReport](outCacheFile) {
Tracked.lastOutput[In, UpdateReport](outCacheFile) {
case (_, Some(out)) => out
case _ => sys.error("Skipping update requested, but update has not previously run successfully.")
}
def doWork: In => UpdateReport =
Tracked.inputChanged(cacheFile / "inputs") { (inChanged: Boolean, in: In) =>
val outCache = Tracked.lastOutputWithJson[In, UpdateReport](outCacheFile) {
val outCache = Tracked.lastOutput[In, UpdateReport](outCacheFile) {
case (_, Some(out)) if uptodate(inChanged, out) => out
case _ => work(in)
}