tests on windows: path separator fix

This commit is contained in:
Alexey Kudravtsev
2013-05-08 19:31:01 +04:00
parent 2862aa06fc
commit 4247ee484a
@@ -80,7 +80,8 @@ public class PluginPathManager {
public static String getPluginHomePathRelative(String pluginName) {
File subrepo = findSubrepo(pluginName);
if (subrepo != null) {
return "/" + FileUtil.getRelativePath(PathManager.getHomePath(), subrepo.getPath(), '/');
String homePath = FileUtil.toSystemIndependentName(PathManager.getHomePath());
return "/" + FileUtil.getRelativePath(homePath, FileUtil.toSystemIndependentName(subrepo.getPath()), '/');
}
return "/plugins/" + pluginName;
}