mirror of https://github.com/sbt/sbt.git
Use new history file path for jline3
The jline2 history file format is incompatible with jline3 and jline3 prints a very noisy warning if it detects such a file. History will also not work with jline3 until you remove or reformat the old file.
This commit is contained in:
parent
761c926944
commit
901c8ee5df
|
|
@ -454,7 +454,12 @@ object Defaults extends BuildCommon {
|
|||
def paths: Seq[Setting[_]] = Seq(
|
||||
baseDirectory := thisProject.value.base,
|
||||
target := baseDirectory.value / "target",
|
||||
historyPath := (historyPath or target(t => Option(t / ".history"))).value,
|
||||
// Use a different history path for jline3 because the jline2 format is
|
||||
// incompatible. By sbt 1.4.0, we should consider revering this to t / ".history"
|
||||
// and possibly rewriting the jline2 history in a jline3 compatible format if the
|
||||
// history file is incompatible. For now, just use a different file to facilitate
|
||||
// going back and forth between 1.3.x and 1.4.x.
|
||||
historyPath := (historyPath or target(t => Option(t / ".history3"))).value,
|
||||
sourceDirectory := baseDirectory.value / "src",
|
||||
sourceManaged := crossTarget.value / "src_managed",
|
||||
resourceManaged := crossTarget.value / "resource_managed",
|
||||
|
|
|
|||
Loading…
Reference in New Issue