mirror of https://github.com/sbt/sbt.git
Sort input source files for consistency, addressing scalac's issues with source file ordering.
This commit is contained in:
parent
99edb01d8c
commit
cc604b57a2
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue