mirror of https://github.com/sbt/sbt.git
Remove old style multi project test
This commit is contained in:
parent
5cbb2edcee
commit
060f06d23e
|
|
@ -1,13 +0,0 @@
|
|||
import sbt._
|
||||
import Keys.name
|
||||
import AddSettings._
|
||||
import Import._
|
||||
|
||||
object TestBuild extends Build
|
||||
{
|
||||
override def projects = Seq(
|
||||
proj("a", "."),
|
||||
proj("b", "b")
|
||||
)
|
||||
def proj(id: String, dir: String) = Project(id, file(dir), settings = Seq( name := id ) ).settingSets(buildScalaFiles)
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import sbt._
|
||||
import Keys.name
|
||||
import Import._
|
||||
|
||||
object TestBuild extends MakeBuild
|
||||
{
|
||||
lazy val a = proj("a", ".")
|
||||
}
|
||||
object SecondBuild extends MakeBuild
|
||||
{
|
||||
lazy val b = proj("b", "b")
|
||||
}
|
||||
trait MakeBuild extends Build
|
||||
{
|
||||
import AddSettings._
|
||||
def proj(id: String, dir: String) = Project(id, file(dir), settings = Seq( name := id ) ).settingSets(buildScalaFiles, defaultSbtFiles)
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
TaskKey[Unit]("example") := {}
|
||||
|
|
@ -1 +0,0 @@
|
|||
TaskKey[Unit]("sample") := {}
|
||||
|
|
@ -1 +0,0 @@
|
|||
TaskKey[Unit]("sample2") := {}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
# A single project definition with projects only defining a name
|
||||
$ copy-file changes/Build1.scala project/Build.scala
|
||||
> reload
|
||||
> a/name
|
||||
-> a/compile
|
||||
> b/name
|
||||
-> b/compile
|
||||
$ delete project/Build.scala
|
||||
|
||||
# Two separate project definitions, implemented using a trait
|
||||
# Only the modules should be discovered.
|
||||
# A .sbt file should be used in each
|
||||
$ copy-file changes/Build2.scala project/Build.scala
|
||||
$ copy-file changes/a.sbt a.sbt
|
||||
$ copy-file changes/b.sbt b/b.sbt
|
||||
$ copy-file changes/b2.sbt b/b2.sbt
|
||||
> reload
|
||||
|
||||
> a/name
|
||||
-> a/compile
|
||||
> a/example
|
||||
-> a/sample
|
||||
-> a/sample2
|
||||
|
||||
> b/name
|
||||
-> b/compile
|
||||
> b/sample
|
||||
> b/sample2
|
||||
-> b/example
|
||||
Loading…
Reference in New Issue