Roll back the use of sbt/serialization for update caching

This commit is contained in:
Eugene Yokota 2015-03-10 05:12:17 -04:00
parent 2959e870d7
commit 45813fb692
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ object Tracked {
toFile(next)(cacheFile)
next
}
private[sbt] def lastOuputWithJson[I, O: Pickler: Unpickler](cacheFile: File)(f: (I, Option[O]) => O): I => O = in =>
// Todo: This function needs more testing.
private[sbt] def lastOutputWithJson[I, O: Pickler: Unpickler](cacheFile: File)(f: (I, Option[O]) => O): I => O = in =>
{
val previous: Option[O] = try {
fromJsonFile[O](cacheFile).toOption