From 730720552b80eacd2581f860fbd861098e54fa7e Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 14 Feb 2010 01:00:37 +0000 Subject: Reducing the amount of low-level classpath mani... Reducing the amount of low-level classpath manipulation going on around town. No review. --- src/compiler/scala/tools/nsc/CompileClient.scala | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala') diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 71f7ea811e..00e3d4d37f 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -6,8 +6,9 @@ package scala.tools.nsc -import java.io.{BufferedReader, File, InputStreamReader, PrintWriter} +import java.io.{ BufferedReader, File, InputStreamReader, PrintWriter } import Properties.fileEndings +import util.ClassPath /** The client part of the fsc offline compiler. Instead of compiling * things itself, it send requests to a CompileServer. @@ -26,11 +27,7 @@ class StandardCompileClient { /** Convert a sequence of filenames, separated by File.pathSeparator, * into absolute filenames. */ - def absFileNames(paths: String) = { - val sep = File.pathSeparator - val pathsList = paths.split(sep).toList - pathsList map absFileName mkString sep - } + def absFileNames(paths: String) = ClassPath.map(paths, absFileName) protected def normalize(args: Array[String]): (String, String) = { var i = 0 -- cgit v1.2.3