Remove project/external-conflict test

This commit is contained in:
Eugene Yokota 2016-03-28 16:48:30 -04:00
parent 3e56fed29b
commit f976c4b04f
7 changed files with 0 additions and 90 deletions

View File

@ -1,3 +0,0 @@
object A {
val x = 3
}

View File

@ -1,11 +0,0 @@
organization := "org.example"
name := "app"
version := "0.1.17"
publishTo <<= baseDirectory(base => Some(Resolver.file("sample", base / "repo")))
resolvers <++= publishTo(_.toList)
ivyPaths <<= (baseDirectory, target)( (dir, t) => new IvyPaths(dir, Some(t / "ivy-cache")))

View File

@ -1,3 +0,0 @@
object A {
val x = 5
}

View File

@ -1,11 +0,0 @@
object B
{
def main(args: Array[String])
{
val expected = args(0).toInt
val actual = A.x
println("Expected: " + expected)
println("Actual: " + actual)
assert(expected == actual, "Expected " + expected + ", got: " + actual)
}
}

View File

@ -1,26 +0,0 @@
import sbt._
import Import._
import Keys._
object B extends Build
{
override def projectDefinitions(f: File) = Seq( makeProject(f) )
def makeProject(f: File) =
{
val addBin = if(isBinary(f)) binaryDep(baseProject) else baseProject
if(isSource(f)) sourceDep(addBin) else addBin
}
def isBinary(f: File) = f / "binary" exists;
def isSource(f: File) = f / "source" exists;
def baseProject = Project("root", file(".")) settings(
ivyPaths <<= (baseDirectory, target)( (dir, t) => new IvyPaths(dir, Some(t / "ivy-cache")))
)
def sourceDep(p: Project) = p dependsOn( file("ext") )
def binaryDep(p: Project) = p settings(
libraryDependencies += "org.example" %% "app" % "0.1.17",
resolvers <+= baseDirectory(base => "sample" at (base / "repo").toURI.toString)
)
}

View File

@ -1,9 +0,0 @@
organization := "org.example"
name := "app"
version <<= baseDirectory { base =>
if(base / "older" exists) "0.1.16" else "0.1.18"
}
ivyPaths <<= (baseDirectory, target)( (dir, t) => new IvyPaths(dir, Some(t / "../ivy-cache")))

View File

@ -1,27 +0,0 @@
> publish
$ delete A.scala build.sbt
$ mkdir ext
$ copy-file changes/A.scala ext/A.scala
$ copy-file changes/B.scala B.scala
$ copy-file changes/Build.scala project/Build.scala
$ copy-file changes/ext.sbt ext/build.sbt
-> compile
$ touch binary
> reload
> run 3
$ delete binary
$ touch source
> reload
> run 5
$ touch binary source
> reload
> run 5
$ touch ext/older
> reload
> run 5