console-project fix

This commit is contained in:
Mark Harrah 2010-01-11 21:02:36 -05:00
parent 3c6b5f79c1
commit 1474afb680
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -1 +1,4 @@
> console-project
$ copy-file changes/BlankProject.scala project/build/BlankProject.scala
> reload
> console-project