Fixed a bug in scripts which put the classfile directory at the
wrong end of the classpath. No review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@22322 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
9dfab5b57d
commit
46cf65b7da
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue