summaryrefslogtreecommitdiff
path: root/test/scaladoc
diff options
context:
space:
mode:
authorEugene Vigdorchik <eugene.vigdorchik@gmail.com>2012-12-18 18:20:37 +0400
committerEugene Vigdorchik <eugene.vigdorchik@gmail.com>2013-01-06 17:22:25 +0400
commit103a478dfc1b3f918e0643333635e3d8d254a9a0 (patch)
tree01a35abb84c155fe8647c3ac38b501ec4c6d0305 /test/scaladoc
parent14b804556e3522042413a1d5e689d3e4db1e1635 (diff)
downloadscala-103a478dfc1b3f918e0643333635e3d8d254a9a0.tar.gz
scala-103a478dfc1b3f918e0643333635e3d8d254a9a0.tar.bz2
scala-103a478dfc1b3f918e0643333635e3d8d254a9a0.zip
SI-6803: do not use java.net.URI, even more so incorrectly.
Diffstat (limited to 'test/scaladoc')
-rwxr-xr-xtest/scaladoc/run/SI-191.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/scaladoc/run/SI-191.scala b/test/scaladoc/run/SI-191.scala
index 6fb5339d66..29b1e7dd29 100755
--- a/test/scaladoc/run/SI-191.scala
+++ b/test/scaladoc/run/SI-191.scala
@@ -33,10 +33,10 @@ object Test extends ScaladocModelTest {
def scalaURL = "http://bog.us"
override def scaladocSettings = {
- val scalaLibUri = getClass.getClassLoader.getResource("scala/Function1.class").toURI.getSchemeSpecificPart.split("!")(0)
- val scalaLib = new File(new URL(scalaLibUri).getPath).getPath
- val extArg = new URI("file", scalaLib, scalaURL).toString
- "-no-link-warnings -doc-external-uris " + extArg
+ val scalaLibUri = getClass.getClassLoader.getResource("scala/Function1.class").getPath.split("!")(0)
+ val scalaLibPath = new URI(scalaLibUri).getPath
+ val externalArg = s"$scalaLibPath#$scalaURL"
+ "-no-link-warnings -doc-external-doc " + externalArg
}
def testModel(rootPackage: Package) {