mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
let BytecodeAnalysisTest work when its path contains spaces
This commit is contained in:
+2
-2
@@ -213,8 +213,8 @@ public class BytecodeAnalysisTest extends JavaCodeInsightFixtureTestCase {
|
||||
Assert.assertEquals(asmKey, psiKey);
|
||||
}
|
||||
|
||||
private void setUpDataClasses() throws IOException {
|
||||
File classesDir = new File(Test01.class.getResource("/" + Test01.class.getPackage().getName().replace('.', '/')).getFile());
|
||||
private void setUpDataClasses() throws Exception {
|
||||
File classesDir = new File(Test01.class.getResource("/" + Test01.class.getPackage().getName().replace('.', '/')).toURI());
|
||||
File destDir = new File(myModule.getProject().getBaseDir().getPath() + myClassesProjectRelativePath);
|
||||
FileUtil.copyDir(classesDir, destDir);
|
||||
VirtualFile vFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(destDir);
|
||||
|
||||
Reference in New Issue
Block a user