summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-11-18 08:20:56 +0000
committermichelou <michelou@epfl.ch>2007-11-18 08:20:56 +0000
commit82c5f83abc60d080a4809e9c7891e2f0c9f07934 (patch)
tree6d92428ebec3bea7f1bf9139cc2ccb7718382db3 /src/partest
parente1f5fa089bb1d1196f4c2fc4ec3780da2865f6f9 (diff)
downloadscala-82c5f83abc60d080a4809e9c7891e2f0c9f07934.tar.gz
scala-82c5f83abc60d080a4809e9c7891e2f0c9f07934.tar.bz2
scala-82c5f83abc60d080a4809e9c7891e2f0c9f07934.zip
Java 1.4 compatibility
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/TestRunner.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/TestRunner.scala b/src/partest/scala/tools/partest/TestRunner.scala
index d39326a697..04b1414d08 100644
--- a/src/partest/scala/tools/partest/TestRunner.scala
+++ b/src/partest/scala/tools/partest/TestRunner.scala
@@ -13,6 +13,7 @@ package scala.tools.partest
import java.awt.event.{ActionEvent, ActionListener}
import java.io.{File, FilenameFilter, FileInputStream, FileOutputStream,
PrintStream}
+import java.net.URI
import scala.tools.nsc.Settings
@@ -95,7 +96,7 @@ object TestRunner {
private val srcDir = {
val dirname = System.getProperty("scalatest.cwd", "")
val dir = if (dirname.isEmpty) { // guess
- val libDir = new File(classOf[Test].getResource("/").toURI)
+ val libDir = new File(new URI(classOf[Test].getResource("/").toString))
val path = libDir.getAbsolutePath
val parent = libDir.getParentFile
val rootDir =