attempt to fix failing test

This commit is contained in:
Alex Tkachman
2012-02-23 19:17:38 +02:00
parent 4da12cfd29
commit ec442af1b3
@@ -80,7 +80,7 @@ public class JetCoreEnvironment extends JavaCoreEnvironment {
if(loader instanceof URLClassLoader) {
for (URL url : ((URLClassLoader) loader).getURLs()) {
File file = new File(url.getPath());
if(!file.isFile() || file.getPath().endsWith(".jar"))
if(file.exists() && (!file.isFile() || file.getPath().endsWith(".jar")))
addToClasspath(file);
}
}