mirror of
https://github.com/sbt/sbt.git
synced 2026-10-08 02:53:10 +02:00
show full stack trace by default when running in batch mode
This commit is contained in:
@@ -38,6 +38,13 @@ trait Identity {
|
||||
override final def toString = super.toString
|
||||
}
|
||||
|
||||
/** StateOps methods to be merged at the next binary incompatible release. */
|
||||
private[sbt] trait NewStateOps
|
||||
{
|
||||
def interactive: Boolean
|
||||
def setInteractive(flag: Boolean): State
|
||||
}
|
||||
|
||||
/** Convenience methods for State transformations and operations. */
|
||||
trait StateOps {
|
||||
def process(f: (String, State) => State): State
|
||||
@@ -151,6 +158,11 @@ object State
|
||||
new Reboot(app.scalaProvider.version, state.remainingCommands, app.id, state.configuration.baseDirectory)
|
||||
}
|
||||
|
||||
private[sbt] implicit def newStateOps(s: State): NewStateOps = new NewStateOps {
|
||||
def interactive = s.get(BasicKeys.interactive).getOrElse(false)
|
||||
def setInteractive(i: Boolean) = s.put(BasicKeys.interactive, i)
|
||||
}
|
||||
|
||||
/** Provides operations and transformations on State. */
|
||||
implicit def stateOps(s: State): StateOps = new StateOps {
|
||||
def process(f: (String, State) => State): State =
|
||||
|
||||
Reference in New Issue
Block a user