From 4e9d57fd26861fcc050824054a9bd09c3fb1daaa Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 16 Jun 2010 17:32:47 +0000 Subject: Fixed a bug in scripts which put the classfile ... Fixed a bug in scripts which put the classfile directory at the wrong end of the classpath. No review. --- src/compiler/scala/tools/nsc/ScriptRunner.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/scala/tools/nsc/ScriptRunner.scala b/src/compiler/scala/tools/nsc/ScriptRunner.scala index 088efe40ff..9a6aa78352 100644 --- a/src/compiler/scala/tools/nsc/ScriptRunner.scala +++ b/src/compiler/scala/tools/nsc/ScriptRunner.scala @@ -241,7 +241,7 @@ object ScriptRunner { scriptArgs: List[String]): Boolean = { val pr = new PathResolver(settings) - val classpath = pr.asURLs :+ File(compiledLocation).toURL + val classpath = File(compiledLocation).toURL +: pr.asURLs try { ObjectRunner.run(classpath, scriptMain(settings), scriptArgs) -- cgit v1.2.3