mirror of https://github.com/sbt/sbt.git
Cleanup & simplify actions/run-task
This commit is contained in:
parent
21eb1f0f12
commit
6038ec51c3
|
|
@ -1,13 +1,7 @@
|
|||
lazy val root = (project in file(".")).
|
||||
settings(
|
||||
myRun,
|
||||
fork in demo := true,
|
||||
javaOptions in demo := "-Dsbt.check.forked=true" :: Nil,
|
||||
myIn
|
||||
)
|
||||
val demo = taskKey[Unit]("Demo run task")
|
||||
fullRunTask(demo, Compile, "A", "1", "1")
|
||||
fork in demo := true
|
||||
javaOptions in demo := "-Dsbt.check.forked=true" :: Nil
|
||||
|
||||
lazy val demoIn = InputKey[Unit]("demoIn", "Demo run input task", demo)
|
||||
lazy val demo = taskKey[Unit]("Demo run task")
|
||||
|
||||
def myRun = fullRunTask(demo, Compile, "A", "1", "1")
|
||||
def myIn = fullRunInputTask(demoIn, Compile, "A", "1")
|
||||
val demoIn = InputKey[Unit]("demoIn", "Demo run input task", demo)
|
||||
fullRunInputTask(demoIn, Compile, "A", "1")
|
||||
|
|
|
|||
Loading…
Reference in New Issue