mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tests: search for jars in IDEA_HOME/community/lib folder
This commit is contained in:
@@ -251,8 +251,7 @@ public class LibraryDownloader {
|
||||
if (url.startsWith(LIB_SCHEMA)) {
|
||||
indicator.setText2(IdeBundle.message("progress.locate.jar.text", getExpectedFileName(libraryInfo)));
|
||||
final String path = url.substring(LIB_SCHEMA.length()).replace('/', File.separatorChar);
|
||||
final String fullPath = PathManager.getLibPath() + File.separatorChar + path;
|
||||
final File file = new File(fullPath);
|
||||
final File file = PathManager.findFileInLibDirectory(path);
|
||||
downloadedFiles.add(Pair.create(libraryInfo, file));
|
||||
} else if (url.startsWith(LocalFileSystem.PROTOCOL_PREFIX)) {
|
||||
String path = url.substring(LocalFileSystem.PROTOCOL_PREFIX.length()).replace('/', File.separatorChar).replace('\\', File.separatorChar);
|
||||
|
||||
Reference in New Issue
Block a user