fix tests: search for jars in IDEA_HOME/community/lib folder

This commit is contained in:
Nikolay Chashnikov
2009-09-02 13:50:39 +04:00
parent 8987aef56a
commit 91c02feb95
4 changed files with 12 additions and 5 deletions
@@ -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);