Tikal : %20 bug in getAppRootDirectory, problem loading plugins

Created by: Anonymous

Original issue 162 created by bach2k%gazeta...@gtempaccount.com on 2011-02-02T10:52:57.000Z:

What steps will reproduce the problem?

  1. Run tikal with pugins in any path that has space in name for ex. "Program Files/tikal"
    2.
    3.

What is the expected output? What do you see instead?

Plugins should be loaded from "Program Files/tikal/dropins". Instead tikal searches "Program%20Files/tikal".

What version of the product are you using? On what operating system?

0.9, WinXP

Please provide any additional information below.

The error is in method Main:getAppRootDirectory in line

return Util.getDirectoryName(Util.getDirectoryName(url.getPath()));

use URI instead for ex. this should be fine:

new File(url.toURI()).getCanonicalFile()

best regards

Assignee Loading
Time tracking Loading