Skip to content

Commit

Permalink
Merge pull request #9 from mrook/spaces-in-library-path
Browse files Browse the repository at this point in the history
Path can contain url encoded characters
  • Loading branch information
mmarich committed Jul 7, 2014
2 parents a3f8ffd + 64792c5 commit ba29c45
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package org.sonar.plugins.scala.compiler

import scala.tools.nsc.{Settings, Global}
import org.slf4j.LoggerFactory
import java.net.URI

/**
* This is a wrapper for the Scala compiler. It is used to access
Expand All @@ -31,7 +32,8 @@ import org.slf4j.LoggerFactory
*/
object Compiler extends Global(new Settings() {

bootclasspath.append(org.sonar.plugins.scala.ScalaPlugin.getPathToScalaLibrary)
val path = new URI(org.sonar.plugins.scala.ScalaPlugin.getPathToScalaLibrary).getPath()
bootclasspath.append(path)

}) {

Expand Down

0 comments on commit ba29c45

Please sign in to comment.