Cleanup & simplify actions/run-task

This commit is contained in:
Dale Wijnand 2018-01-24 12:59:22 +00:00
parent 21eb1f0f12
commit 6038ec51c3
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 6 additions and 12 deletions

View File

@ -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")