aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
Diffstat (limited to 'stage1')
-rw-r--r--stage1/ClassPath.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/stage1/ClassPath.scala b/stage1/ClassPath.scala
index d8568c2..539efc7 100644
--- a/stage1/ClassPath.scala
+++ b/stage1/ClassPath.scala
@@ -22,6 +22,9 @@ case class ClassPath(files: Seq[File] = Seq()){
def ++(other: ClassPath) = ClassPath(files ++ other.files)
def string = strings.mkString( File.pathSeparator )
def strings = files.map{
- f => f.string ++ ( if(f.isDirectory) "/" else "" )
+ f => f.string + (
+ // using file extension instead of isDirectory for performance reasons
+ if( f.getName.endsWith(".jar") /* !f.isDirectory */ ) "" else "/"
+ )
}.sorted
}