mirror of https://github.com/sbt/sbt.git
Port project/session-update-from-cmd
This commit is contained in:
parent
6d2fe00248
commit
4b17730e83
|
|
@ -1,3 +1,5 @@
|
|||
import Common._
|
||||
|
||||
name := "projectName"
|
||||
|
||||
k1 := {
|
||||
|
|
@ -9,4 +11,10 @@ k2 := {
|
|||
println("This is k2")
|
||||
}
|
||||
|
||||
val x = 5; k3 := {}; k4 := {}
|
||||
val x = 5; k3 := {}; k4 := {}
|
||||
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
commands ++= Seq(UpdateK1, UpdateK3)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import Common._
|
||||
|
||||
name := "projectName"
|
||||
|
||||
k1 := {
|
||||
|
|
@ -12,4 +14,10 @@ k2 := {
|
|||
val x = 5; k3 := {
|
||||
//
|
||||
//
|
||||
}; k4 := {}
|
||||
}; k4 := {}
|
||||
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
commands ++= Seq(UpdateK1, UpdateK3)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import Common._
|
||||
|
||||
name := "projectName"
|
||||
|
||||
k1 := {}
|
||||
|
|
@ -6,4 +8,10 @@ k2 := {
|
|||
println("This is k2")
|
||||
}
|
||||
|
||||
val x = 5; k3 := {}; k4 := {}
|
||||
val x = 5; k3 := {}; k4 := {}
|
||||
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
commands ++= Seq(UpdateK1, UpdateK3)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import sbt._
|
|||
import Keys._
|
||||
import Import._
|
||||
|
||||
object build extends Build {
|
||||
object Common {
|
||||
lazy val k1 = taskKey[Unit]("")
|
||||
lazy val k2 = taskKey[Unit]("")
|
||||
lazy val k3 = taskKey[Unit]("")
|
||||
|
|
@ -32,10 +32,6 @@ object build extends Build {
|
|||
// SessionSettings.writeSettings(ex.currentRef, session2, ex.session.original, ex.structure)
|
||||
SessionSettings.saveAllSettings(st1)
|
||||
}
|
||||
|
||||
lazy val root = Project("root", file(".")) settings(
|
||||
commands ++= Seq(UpdateK1, UpdateK3)
|
||||
)
|
||||
}
|
||||
|
||||
// vim: set ts=4 sw=4 et:
|
||||
Loading…
Reference in New Issue