mirror of https://github.com/sbt/sbt.git
Define DefaultEvaluateTaskConfig
This commit is contained in:
parent
6820bcf99c
commit
7ce389c1da
|
|
@ -127,23 +127,19 @@ object EvaluateTaskConfig {
|
||||||
cancelStrategy: TaskCancellationStrategy,
|
cancelStrategy: TaskCancellationStrategy,
|
||||||
forceGarbageCollection: Boolean,
|
forceGarbageCollection: Boolean,
|
||||||
minForcegcInterval: Duration
|
minForcegcInterval: Duration
|
||||||
): EvaluateTaskConfig = {
|
): EvaluateTaskConfig =
|
||||||
val r = restrictions
|
DefaultEvaluateTaskConfig(
|
||||||
val check = checkCycles
|
restrictions, checkCycles, progressReporter, cancelStrategy, forceGarbageCollection, minForcegcInterval
|
||||||
val cs = cancelStrategy
|
)
|
||||||
val pr = progressReporter
|
|
||||||
val fgc = forceGarbageCollection
|
private[this] case class DefaultEvaluateTaskConfig(
|
||||||
val mfi = minForcegcInterval
|
restrictions: Seq[Tags.Rule],
|
||||||
object SimpleEvaluateTaskConfig extends EvaluateTaskConfig {
|
checkCycles: Boolean,
|
||||||
def restrictions = r
|
progressReporter: ExecuteProgress[Task],
|
||||||
def checkCycles = check
|
cancelStrategy: TaskCancellationStrategy,
|
||||||
def progressReporter = pr
|
forceGarbageCollection: Boolean,
|
||||||
def cancelStrategy = cs
|
minForcegcInterval: Duration
|
||||||
def forceGarbageCollection = fgc
|
) extends EvaluateTaskConfig
|
||||||
def minForcegcInterval = mfi
|
|
||||||
}
|
|
||||||
SimpleEvaluateTaskConfig
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final case class PluginData(
|
final case class PluginData(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue