diff --git a/sbt/src/sbt-test/project/delegate_config/project/Build.scala b/sbt/src/sbt-test/project/delegate_config/project/Build.scala deleted file mode 100644 index 2dacae404..000000000 --- a/sbt/src/sbt-test/project/delegate_config/project/Build.scala +++ /dev/null @@ -1,29 +0,0 @@ -import sbt._ -import Import._ -import complete.DefaultParsers._ -import Keys._ -import AddSettings._ - -object B extends Build -{ - // This configuration is added to 'sub' only. - // This verifies that delegation works when a configuration is not defined in the project that is being delegated to - val newConfig = config("sample") - - val sample = SettingKey[Int]("sample") - val check = TaskKey[Unit]("check") - - lazy val root = Project("root", file("."), settings = Nil).settingSets() - lazy val sub = Project("sub", file("."), - delegates = root :: Nil, - configurations = newConfig :: Nil, - settings = incSample :: checkTask(4) :: Nil).settingSets(buildScalaFiles) - override lazy val settings = - (sample in newConfig := 3) :: - checkTask(3) :: - Nil - - def incSample = sample <<= sample in newConfig apply (_ + 1) - def checkTask(expected: Int) = check <<= sample in newConfig map ( i => assert(i == expected, "Expected " + expected + ", got " + i ) ) - -} diff --git a/sbt/src/sbt-test/project/delegate_config/test b/sbt/src/sbt-test/project/delegate_config/test deleted file mode 100644 index 3d6dacc78..000000000 --- a/sbt/src/sbt-test/project/delegate_config/test +++ /dev/null @@ -1,11 +0,0 @@ --> root/sample -> sub/sample - --> root/*:sample -> sub/*:sample - -> root/*:check -> root/check - -> sub/*:check -> sub/check