mirror of https://github.com/sbt/sbt.git
'update' caching now takes into account whether jars still exist
This commit is contained in:
parent
309bc5caeb
commit
cacd1a5be8
|
|
@ -31,6 +31,14 @@ object Tracked
|
||||||
|
|
||||||
import sbinary.JavaIO._
|
import sbinary.JavaIO._
|
||||||
|
|
||||||
|
def lastOutput[I,O](cacheFile: File)(f: (I,Option[O]) => O)(implicit o: Format[O], mf: Manifest[Format[O]]): I => O = in =>
|
||||||
|
{
|
||||||
|
val previous: Option[O] = fromFile[O](cacheFile)
|
||||||
|
val next = f(in, previous)
|
||||||
|
toFile(next)(cacheFile)
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
def inputChanged[I,O](cacheFile: File)(f: (Boolean, I) => O)(implicit ic: InputCache[I]): I => O = in =>
|
def inputChanged[I,O](cacheFile: File)(f: (Boolean, I) => O)(implicit ic: InputCache[I]): I => O = in =>
|
||||||
{
|
{
|
||||||
val help = new CacheHelp(ic)
|
val help = new CacheHelp(ic)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue