mirror of https://github.com/sbt/sbt.git
Fix how fullClasspath is defined in TestBuildInfo
This commit is contained in:
parent
c1e0785a1f
commit
c7cc52092e
|
|
@ -455,7 +455,9 @@ lazy val sbtProj = (project in file("sbt"))
|
|||
BuildInfoPlugin.buildInfoDefaultSettings,
|
||||
addBuildInfoToConfig(Test),
|
||||
buildInfoObject in Test := "TestBuildInfo",
|
||||
buildInfoKeys in Test := Seq[BuildInfoKey](fullClasspath in Compile),
|
||||
buildInfoKeys in Test := Seq[BuildInfoKey](
|
||||
BuildInfoKey.map(fullClasspath in Compile) { case (ident, cp) => ident -> cp.files },
|
||||
),
|
||||
connectInput in run in Test := true,
|
||||
outputStrategy in run in Test := Some(StdoutOutput),
|
||||
fork in Test := true,
|
||||
|
|
|
|||
|
|
@ -87,11 +87,7 @@ object RunFromSourceMain {
|
|||
Nil
|
||||
)
|
||||
|
||||
def mainClasspath =
|
||||
buildinfo.TestBuildInfo.fullClasspath.iterator
|
||||
.map(s => file(s.stripPrefix("Attributed(").stripSuffix(")")))
|
||||
.toArray
|
||||
|
||||
def mainClasspath = buildinfo.TestBuildInfo.fullClasspath.toArray
|
||||
def loader = new java.net.URLClassLoader(mainClasspath map (_.toURI.toURL), null)
|
||||
def entryPoint = classOf[xMain]
|
||||
def mainClass = classOf[xMain]
|
||||
|
|
|
|||
Loading…
Reference in New Issue