Port actions/reload

This commit is contained in:
Eugene Yokota 2016-03-29 00:12:38 -04:00
parent f0ed145058
commit c1246d6fc3
7 changed files with 19 additions and 30 deletions

View File

@ -0,0 +1,10 @@
lazy val root = (project in file(".")).
aggregate(sub).
settings(
TaskKey[Unit]("f") := sys.error("f")
)
lazy val sub = (project in file("sub")).
settings(
TaskKey[Unit]("f") := {}
)

View File

@ -1,8 +0,0 @@
import sbt._
import Import._
object TestBuild extends Build
{
lazy val root1 = Project("root1", file(".")) dependsOn(root2)
lazy val root2 = ProjectRef(uri("external"), "root2")
}

View File

@ -0,0 +1,4 @@
lazy val root1 = (project in file(".")).
aggregate(root2)
lazy val root2 = ProjectRef(uri("external"), "root2")

View File

@ -0,0 +1,4 @@
lazy val root2 = (project in file("root2")).
settings(
TaskKey[Unit]("g") := {}
)

View File

@ -1,9 +0,0 @@
import sbt._
import Import._
object Ext extends Build
{
lazy val root2 = Project("root2", file("root2")) settings(
TaskKey[Unit]("g") := {}
)
}

View File

@ -1,12 +0,0 @@
import sbt._
import Import._
object TestBuild extends Build
{
lazy val root = Project("root", file("."), aggregate = Seq(sub)) settings(
TaskKey[Unit]("f") := sys.error("f")
)
lazy val sub = Project("sub", file("sub")) settings(
TaskKey[Unit]("f") := {}
)
}

View File

@ -6,7 +6,7 @@
> f
> reload
> f
$ copy-file changes/Changed.scala project/TestProject.scala
$ copy-file changes/changed.sbt build.sbt
> reload
-> f
> project {external}root2