mirror of https://github.com/sbt/sbt.git
console-project fix
This commit is contained in:
parent
3c6b5f79c1
commit
1474afb680
|
|
@ -109,7 +109,8 @@ object Run
|
|||
val projectLoader = project.getClass.getClassLoader
|
||||
val launcherJar = FileUtilities.classLocationFile[xsbti.Launcher]
|
||||
val app = project.info.app
|
||||
val classpathFiles = app.mainClasspath ++ app.scalaProvider.jars ++ Array(launcherJar)
|
||||
val projectJars: Array[File] = projectLoader.asInstanceOf[URLClassLoader].getURLs.flatMap(ClasspathUtilities.asFile).toArray[File]
|
||||
val classpathFiles = app.mainClasspath ++ app.scalaProvider.jars ++ Array(launcherJar) ++ projectJars
|
||||
compilerSettings.classpath.value = classpathFiles.map(_.getAbsolutePath).mkString(File.pathSeparator)
|
||||
project.log.debug(" Compiler classpath: " + compilerSettings.classpath.value)
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,4 @@
|
|||
> console-project
|
||||
$ copy-file changes/BlankProject.scala project/build/BlankProject.scala
|
||||
> reload
|
||||
> console-project
|
||||
Loading…
Reference in New Issue