Port project/sbt-file-projects

This commit is contained in:
Eugene Yokota 2016-03-29 02:10:44 -04:00
parent 8e3f7f5f10
commit 8d608a2a84
6 changed files with 6 additions and 31 deletions

View File

@ -2,8 +2,9 @@ val a = "a"
val f = file("a")
val g = taskKey[Unit]("A task in the root project")
val p = Project(a, f).settingSets(AddSettings.autoPlugins, AddSettings.sbtFiles( file("a.sbt") ))
val p = Project(a, f).
settingSets(AddSettings.autoPlugins, AddSettings.sbtFiles( file("a.sbt") ))
val b = Project("b", file("b"))
val b = (project in file("b"))
g := println("Hello.")

View File

@ -0,0 +1 @@
lazy val root = (project in file("."))

View File

@ -1,7 +0,0 @@
import sbt._
import Keys._
import Import._
object B extends Build {
lazy val root = Project("root", file("."))
}

View File

@ -1,9 +0,0 @@
import sbt._
import Keys._
import Import._
object B extends Build {
lazy val root = Project("root", file(".")).settingSets(
AddSettings.autoPlugins,
AddSettings.sbtFiles( file("other.sbt") )) // ignore build.sbt
}

View File

@ -1 +1 @@
val c = Project("c", file("c"))
val c = project

View File

@ -7,7 +7,7 @@
> b/h
> c/compile
$ copy-file changes/Basic.scala project/Build.scala
$ copy-file changes/Basic.sbt basic.sbt
> reload
> g
> root/compile
@ -16,14 +16,3 @@ $ copy-file changes/Basic.scala project/Build.scala
> b/compile
> b/h
> c/compile
$ copy-file changes/Restricted.scala project/Build.scala
> reload
> root/compile
-> g
-> h
-> a/compile
-> a/aa
-> b/compile
-> b/h
> c/compile