Tracked

sbt.util.Tracked$
See theTracked companion trait
object Tracked

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Tracked.type

Members list

Concise view

Value members

Concrete methods

def diffInputs(store: CacheStore, style: Style): Difference

Creates a tracker that provides the difference between a set of input files for successive invocations.

Creates a tracker that provides the difference between a set of input files for successive invocations.

Attributes

def diffInputs(cacheFile: File, style: Style): Difference

Creates a tracker that provides the difference between a set of input files for successive invocations.

Creates a tracker that provides the difference between a set of input files for successive invocations.

Attributes

def diffOutputs(store: CacheStore, style: Style): Difference

Creates a tracker that provides the difference between a set of output files for successive invocations.

Creates a tracker that provides the difference between a set of output files for successive invocations.

Attributes

def diffOutputs(cacheFile: File, style: Style): Difference

Creates a tracker that provides the difference between a set of output files for successive invocations.

Creates a tracker that provides the difference between a set of output files for successive invocations.

Attributes

def inputChanged[I : SingletonCache, O](store: CacheStore)(f: (Boolean, I) => O): I => O

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

val cachedTask = inputChanged(cacheStoreFactory.make("inputs")) { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cacheStoreFactory.make("output")) { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

Attributes

def inputChanged[I : SingletonCache, O](cacheFile: File)(f: (Boolean, I) => O): I => O

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

val cachedTask = inputChanged(cache / "inputs") { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cache / "output") { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

Attributes

def inputChangedW[I : JsonWriter, O](store: CacheStore)(f: (Boolean, I) => O): I => O

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

val cachedTask = inputChanged(cacheStoreFactory.make("inputs")) { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cacheStoreFactory.make("output")) { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

This is a variant of inputChanged that takes I: JsonWriter as opposed to I: JsonFormat.

Attributes

def inputChangedW[I : JsonWriter, O](cacheFile: File)(f: (Boolean, I) => O): I => O

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

Creates a tracker that indicates whether the arguments given to f have changed since the most recent invocation.

val cachedTask = inputChanged(cache / "inputs") { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cache / "output") { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

This is a variant of inputChanged that takes I: JsonWriter as opposed to I: JsonFormat.

Attributes

def lastOutput[I, O : JsonFormat](store: CacheStore)(f: (I, Option[O]) => O): I => O

Creates a tracker that provides the output of the most recent invocation of the function

Creates a tracker that provides the output of the most recent invocation of the function

Attributes

def lastOutput[I, O : JsonFormat](cacheFile: File)(f: (I, Option[O]) => O): I => O

Creates a tracker that provides the output of the most recent invocation of the function

Creates a tracker that provides the output of the most recent invocation of the function

Attributes

def outputChanged[A1 : JsonFormat, A2](store: CacheStore)(f: (Boolean, A1) => A2): (() => A1) => A2

Creates a tracker that indicates whether the output returned from p has changed or not.

Creates a tracker that indicates whether the output returned from p has changed or not.

val cachedTask = inputChanged(cacheStoreFactory.make("inputs")) { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cacheStoreFactory.make("output")) { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

Attributes

def outputChanged[A1 : JsonFormat, A2](cacheFile: File)(f: (Boolean, A1) => A2): (() => A1) => A2

Creates a tracker that indicates whether the output returned from p has changed or not.

Creates a tracker that indicates whether the output returned from p has changed or not.

val cachedTask = inputChanged(cache / "inputs") { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cache / "output") { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

Attributes

def outputChangedW[A1 : JsonWriter, A2](store: CacheStore)(f: (Boolean, A1) => A2): (() => A1) => A2

Creates a tracker that indicates whether the output returned from p has changed or not.

Creates a tracker that indicates whether the output returned from p has changed or not.

val cachedTask = inputChanged(cacheStoreFactory.make("inputs")) { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cacheStoreFactory.make("output")) { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

This is a variant of outputChanged that takes A1: JsonWriter as opposed to A1: JsonFormat.

Attributes

def outputChangedW[A1 : JsonWriter, A2](cacheFile: File)(f: (Boolean, A1) => A2): (() => A1) => A2

Creates a tracker that indicates whether the output returned from p has changed or not.

Creates a tracker that indicates whether the output returned from p has changed or not.

val cachedTask = inputChanged(cache / "inputs") { (inChanged, in: Inputs) =>
 Tracked.outputChanged(cache / "output") { (outChanged, outputs: FilesInfo[PlainFileInfo]) =>
   if (inChanged || outChanged) {
     doSomething(label, sources, classpath, outputDirectory, options, log)
   }
 }
}
cachedDoc(inputs)(() => exists(outputDirectory.allPaths.get.toSet))

This is a variant of outputChanged that takes A1: JsonWriter as opposed to A1: JsonFormat.

Attributes

def tstamp(store: CacheStore): Timestamp

Creates a tracker that provides the last time it was evaluated. If the function throws an exception.

Creates a tracker that provides the last time it was evaluated. If the function throws an exception.

Attributes

def tstamp(cacheFile: File): Timestamp

Creates a tracker that provides the last time it was evaluated. If the function throws an exception.

Creates a tracker that provides the last time it was evaluated. If the function throws an exception.

Attributes

def tstamp(store: CacheStore, useStartTime: Boolean): Timestamp

Creates a tracker that provides the last time it was evaluated. If 'useStartTime' is true, the recorded time is the start of the evaluated function. If 'useStartTime' is false, the recorded time is when the evaluated function completes. In both cases, the timestamp is not updated if the function throws an exception.

Creates a tracker that provides the last time it was evaluated. If 'useStartTime' is true, the recorded time is the start of the evaluated function. If 'useStartTime' is false, the recorded time is when the evaluated function completes. In both cases, the timestamp is not updated if the function throws an exception.

Attributes

def tstamp(cacheFile: File, useStartTime: Boolean): Timestamp

Creates a tracker that provides the last time it was evaluated. If 'useStartTime' is true, the recorded time is the start of the evaluated function. If 'useStartTime' is false, the recorded time is when the evaluated function completes. In both cases, the timestamp is not updated if the function throws an exception.

Creates a tracker that provides the last time it was evaluated. If 'useStartTime' is true, the recorded time is the start of the evaluated function. If 'useStartTime' is false, the recorded time is when the evaluated function completes. In both cases, the timestamp is not updated if the function throws an exception.

Attributes