Sort input source files for consistency, addressing scalac's issues with source file ordering.

This commit is contained in:
Mark Harrah 2010-05-10 18:50:59 -04:00
parent 99edb01d8c
commit cc604b57a2
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class CompilerArguments(scalaInstance: ScalaInstance, cp: ClasspathOptions) exte
def finishClasspath(classpath: Set[File]): Set[File] =
classpath ++ include(cp.compiler, scalaInstance.compilerJar) ++ include(cp.extra, scalaInstance.extraJars : _*)
private def include(flag: Boolean, jars: File*) = if(flag) jars else Nil
protected def abs(files: Set[File]) = files.map(_.getAbsolutePath)
protected def abs(files: Set[File]) = files.map(_.getAbsolutePath).toList.sort(_ < _)
protected def checkScalaHomeUnset()
{
val scalaHome = System.getProperty("scala.home")