From ec442af1b3b1230b00e43fed6039146572e6b5d2 Mon Sep 17 00:00:00 2001 From: Alex Tkachman Date: Thu, 23 Feb 2012 19:17:38 +0200 Subject: [PATCH] attempt to fix failing test --- .../cli/src/org/jetbrains/jet/compiler/JetCoreEnvironment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cli/src/org/jetbrains/jet/compiler/JetCoreEnvironment.java b/compiler/cli/src/org/jetbrains/jet/compiler/JetCoreEnvironment.java index 1c899a1c953..bd0ac7ebcca 100644 --- a/compiler/cli/src/org/jetbrains/jet/compiler/JetCoreEnvironment.java +++ b/compiler/cli/src/org/jetbrains/jet/compiler/JetCoreEnvironment.java @@ -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); } }