From 48e24688c1476a529152db158a9e96fcb76adbaf Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Tue, 29 Mar 2016 00:17:56 -0400 Subject: [PATCH] Port actions/run-task --- sbt/src/sbt-test/actions/run-task/build.sbt | 13 +++++++++++++ .../sbt-test/actions/run-task/project/B.scala | 19 ------------------- 2 files changed, 13 insertions(+), 19 deletions(-) create mode 100644 sbt/src/sbt-test/actions/run-task/build.sbt delete mode 100644 sbt/src/sbt-test/actions/run-task/project/B.scala diff --git a/sbt/src/sbt-test/actions/run-task/build.sbt b/sbt/src/sbt-test/actions/run-task/build.sbt new file mode 100644 index 000000000..6d71b2bbb --- /dev/null +++ b/sbt/src/sbt-test/actions/run-task/build.sbt @@ -0,0 +1,13 @@ +lazy val root = (project in file(".")). + settings( + myRun, + fork in demo := true, + javaOptions in demo := "-Dsbt.check.forked=true" :: Nil, + myIn + ) + +lazy val demoIn = InputKey[Unit]("demo-in", "Demo run input task", demo) +lazy val demo = TaskKey[Unit]("demo", "Demo run task") + +def myRun = fullRunTask( demo, Compile, "A", "1", "1") +def myIn = fullRunInputTask( demoIn, Compile, "A", "1") diff --git a/sbt/src/sbt-test/actions/run-task/project/B.scala b/sbt/src/sbt-test/actions/run-task/project/B.scala deleted file mode 100644 index 5e42051ee..000000000 --- a/sbt/src/sbt-test/actions/run-task/project/B.scala +++ /dev/null @@ -1,19 +0,0 @@ -import sbt._ -import Keys._ -import Import._ - -object B extends Build -{ - lazy val root = Project("root", file(".")) settings( - myRun, - fork in demo := true, - javaOptions in demo := "-Dsbt.check.forked=true" :: Nil, - myIn - ) - - lazy val demoIn = InputKey[Unit]("demo-in", "Demo run input task", demo) - lazy val demo = TaskKey[Unit]("demo", "Demo run task") - - def myRun = fullRunTask( demo, Compile, "A", "1", "1") - def myIn = fullRunInputTask( demoIn, Compile, "A", "1") -}