Skip to content

Commit

Permalink
Merge pull request #26 from olafurpg/uri
Browse files Browse the repository at this point in the history
Support reading jar file with space in the name.
  • Loading branch information
retronym authored May 15, 2018
2 parents 1495637 + bb0b90f commit e7f691e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/scala/tools/jardiff/IOUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object IOUtil {
if (index == -1) {
fileOrZip
} else {
val uri = URI.create("jar:file:" + Paths.get(fileOrZip.toString.substring(0, index + extSlash.length - 1)).toUri.getPath)
val uri = URI.create("jar:" + Paths.get(fileOrZip.toString.substring(0, index + extSlash.length - 1)).toUri.toString)
val jarEntry = fileOrZip.toString.substring(index + extSlash.length - 1)
val system = newFileSystem(uri, new util.HashMap[String, Any]())
system.getPath(jarEntry)
Expand Down

0 comments on commit e7f691e

Please sign in to comment.