From 60dcd4404fe3e39bd2f465ccea05ffecaa68767c Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 6 Jul 2011 07:30:47 -0400 Subject: [PATCH] pass empty classpath instead of no classpath. fixes #85. ref #82 --- compile/CompilerArguments.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/CompilerArguments.scala b/compile/CompilerArguments.scala index 9542db37d..7db74ddc8 100644 --- a/compile/CompilerArguments.scala +++ b/compile/CompilerArguments.scala @@ -18,7 +18,7 @@ final class CompilerArguments(scalaInstance: ScalaInstance, cp: ClasspathOptions { checkScalaHomeUnset() val cpWithCompiler = finishClasspath(classpath) - val classpathOption = if(cpWithCompiler.isEmpty) Nil else Seq("-cp", absString(cpWithCompiler) ) + val classpathOption = Seq("-cp", if(cpWithCompiler.isEmpty) "" else absString(cpWithCompiler) ) val outputOption = Seq("-d", outputDirectory.getAbsolutePath) options ++ outputOption ++ bootClasspathOption ++ classpathOption ++ abs(sources) }