summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/CompileClient.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-14 01:00:37 +0000
committerPaul Phillips <paulp@improving.org>2010-02-14 01:00:37 +0000
commit730720552b80eacd2581f860fbd861098e54fa7e (patch)
tree9bb850bf8aaa7f0f4364171da10864dc96d1a95f /src/compiler/scala/tools/nsc/CompileClient.scala
parentd04911d894ce107593c773d253d19b5d094a2ad0 (diff)
downloadscala-730720552b80eacd2581f860fbd861098e54fa7e.tar.gz
scala-730720552b80eacd2581f860fbd861098e54fa7e.tar.bz2
scala-730720552b80eacd2581f860fbd861098e54fa7e.zip
Reducing the amount of low-level classpath mani...
Reducing the amount of low-level classpath manipulation going on around town. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala')
-rw-r--r--src/compiler/scala/tools/nsc/CompileClient.scala9
1 files changed, 3 insertions, 6 deletions
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 <code>File.pathSeparator</code>,
* 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