properly handle arguments to compiler when classpath is empty

This commit is contained in:
Mark Harrah 2011-06-10 07:48:53 -04:00
parent 6cebff588b
commit 520f74d114
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ final class CompilerArguments(scalaInstance: ScalaInstance, cp: ClasspathOptions
{
checkScalaHomeUnset()
val cpWithCompiler = finishClasspath(classpath)
val classpathOption = Seq("-cp", absString(cpWithCompiler) )
val classpathOption = if(cpWithCompiler.isEmpty) Nil else Seq("-cp", absString(cpWithCompiler) )
val outputOption = Seq("-d", outputDirectory.getAbsolutePath)
options ++ outputOption ++ bootClasspathOption ++ classpathOption ++ abs(sources)
}