summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-11-12 21:39:12 +0000
committerPaul Phillips <paulp@improving.org>2009-11-12 21:39:12 +0000
commit523a9a265817aad06d9ed58507d3a1eea420f3ab (patch)
tree6a422b35ded5cbcef5564faddaecc616714d3652 /src/partest
parentfe3b78b8644fe025e9ff742d79d9b69270993749 (diff)
downloadscala-523a9a265817aad06d9ed58507d3a1eea420f3ab.tar.gz
scala-523a9a265817aad06d9ed58507d3a1eea420f3ab.tar.bz2
scala-523a9a265817aad06d9ed58507d3a1eea420f3ab.zip
Removed everything deprecated in 2.7.3 or earli...
Removed everything deprecated in 2.7.3 or earlier except the lower case primitive type aliases, plus associated fixes.
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/nest/Worker.scala11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala
index 2e2049ffbe..641950f7b9 100644
--- a/src/partest/scala/tools/partest/nest/Worker.scala
+++ b/src/partest/scala/tools/partest/nest/Worker.scala
@@ -125,10 +125,9 @@ class Worker(val fileManager: FileManager) extends Actor {
val classpath: List[URL] =
outDir.toURL ::
//List(file.getParentFile.toURL) :::
- List(latestCompFile.toURL, latestLibFile.toURL,
- latestActFile.toURL, latestPartestFile.toURL) :::
- (List.fromString(CLASSPATH, File.pathSeparatorChar) map { x =>
- (new File(x)).toURL })
+ List(latestCompFile.toURL, latestLibFile.toURL, latestActFile.toURL, latestPartestFile.toURL) :::
+ ((CLASSPATH split File.pathSeparatorChar).toList map (x => new File(x).toURL))
+
NestUI.verbose("ObjectRunner classpath: "+classpath)
try {
@@ -589,7 +588,7 @@ class Worker(val fileManager: FileManager) extends Actor {
"-d "+outDir.getCanonicalFile.getAbsolutePath+
" -Xresident"+
" -sourcepath "+sourcepath
- val argList = List.fromString(argString, ' ')
+ val argList = argString split ' ' toList
// configure input/output files
val logOut = new FileOutputStream(logFile)
@@ -610,7 +609,7 @@ class Worker(val fileManager: FileManager) extends Actor {
val resCompile = (line: String) => {
NestUI.verbose("compiling "+line)
- val cmdArgs = List.fromString(line, ' ') map { fs => new File(dir, fs).getAbsolutePath }
+ val cmdArgs = (line split ' ').toList map (fs => new File(dir, fs).getAbsolutePath)
NestUI.verbose("cmdArgs: "+cmdArgs)
val sett = new Settings(error)
sett.sourcepath.value = sourcepath