mirror of https://github.com/sbt/sbt.git
Add welcome banner with Java version
Fixes https://github.com/sbt/sbt/issues/5544
This commit is contained in:
parent
24f367fa07
commit
2bf1bcc884
|
|
@ -842,7 +842,15 @@ object BuiltinCommands {
|
|||
}
|
||||
}
|
||||
|
||||
private def welcomeBanner(state: State): Unit = {
|
||||
import scala.util.Properties
|
||||
val appVersion = state.configuration.provider.id.version()
|
||||
val javaVersion = s"${Properties.javaVendor} Java ${Properties.javaVersion}"
|
||||
state.log.info(s"welcome to sbt $appVersion ($javaVersion)")
|
||||
}
|
||||
|
||||
def doLoadProject(s0: State, action: LoadAction.Value): State = {
|
||||
welcomeBanner(s0)
|
||||
checkSBTVersionChanged(s0)
|
||||
val (s1, base) = Project.loadAction(SessionVar.clear(s0), action)
|
||||
IO.createDirectory(base)
|
||||
|
|
|
|||
Loading…
Reference in New Issue