another attempt to fix broken (windows) cli test on public server

This commit is contained in:
Alex Tkachman
2012-08-02 07:27:15 +03:00
parent 29054586d3
commit 380d7add9f
@@ -407,13 +407,7 @@ public class KotlinToJVMBytecodeCompiler {
if(loader instanceof URLClassLoader) {
for (URL url : ((URLClassLoader) loader).getURLs()) {
String urlFile;
try {
urlFile = url.toURI().getPath();
}
catch (URISyntaxException e) {
throw ExceptionUtils.rethrow(e);
}
String urlFile = url.getPath();
File file = new File(urlFile);
if(file.exists() && (file.isDirectory() || file.getName().endsWith(".jar"))) {
files.add(file);