Remove old style multi project test

This commit is contained in:
Eugene Yokota 2016-03-29 01:58:58 -04:00
parent 5cbb2edcee
commit 060f06d23e
6 changed files with 0 additions and 62 deletions

View File

@ -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)
}

View File

@ -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)
}

View File

@ -1 +0,0 @@
TaskKey[Unit]("example") := {}

View File

@ -1 +0,0 @@
TaskKey[Unit]("sample") := {}

View File

@ -1 +0,0 @@
TaskKey[Unit]("sample2") := {}

View File

@ -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