mirror of https://github.com/sbt/sbt.git
Port project/sbt-file-projects
This commit is contained in:
parent
8e3f7f5f10
commit
8d608a2a84
|
|
@ -2,8 +2,9 @@ val a = "a"
|
||||||
val f = file("a")
|
val f = file("a")
|
||||||
val g = taskKey[Unit]("A task in the root project")
|
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.")
|
g := println("Hello.")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
lazy val root = (project in file("."))
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
import sbt._
|
|
||||||
import Keys._
|
|
||||||
import Import._
|
|
||||||
|
|
||||||
object B extends Build {
|
|
||||||
lazy val root = Project("root", 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
|
|
||||||
}
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
val c = Project("c", file("c"))
|
val c = project
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
> b/h
|
> b/h
|
||||||
> c/compile
|
> c/compile
|
||||||
|
|
||||||
$ copy-file changes/Basic.scala project/Build.scala
|
$ copy-file changes/Basic.sbt basic.sbt
|
||||||
> reload
|
> reload
|
||||||
> g
|
> g
|
||||||
> root/compile
|
> root/compile
|
||||||
|
|
@ -16,14 +16,3 @@ $ copy-file changes/Basic.scala project/Build.scala
|
||||||
> b/compile
|
> b/compile
|
||||||
> b/h
|
> b/h
|
||||||
> c/compile
|
> 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
|
|
||||||
Loading…
Reference in New Issue