mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Convert path to system independent name to support Windows
Different separator is used on Windows and which breaks getRelativePath
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ public class MadTestingUtil {
|
||||
@NotNull
|
||||
private static VirtualFile copyFileToProject(File ioFile, CodeInsightTestFixture fixture, String rootPath) {
|
||||
try {
|
||||
String path = FileUtil.getRelativePath(FileUtil.toCanonicalPath(rootPath), ioFile.getPath(), '/');
|
||||
String path = FileUtil.getRelativePath(FileUtil.toCanonicalPath(rootPath), FileUtil.toSystemIndependentName(ioFile.getPath()), '/');
|
||||
assert path != null;
|
||||
VirtualFile existing = fixture.findFileInTempDir(path);
|
||||
if (existing != null) {
|
||||
|
||||
Reference in New Issue
Block a user