mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix tests: paths containing non-existing dirs cannot be resolved under linux
This commit is contained in:
+4
-1
@@ -53,7 +53,10 @@ public class CompileServerClasspathManager {
|
||||
}
|
||||
else if (baseFile.isDirectory()) {
|
||||
final String relativePath = serverPlugin.getJarPath();
|
||||
File jarFile = new File(new File(baseFile, "lib"), relativePath);
|
||||
|
||||
final File jarFile = relativePath.startsWith("../")
|
||||
? new File(baseFile, relativePath.substring(3))
|
||||
: new File(new File(baseFile, "lib"), relativePath);
|
||||
if (jarFile.exists()) {
|
||||
classpath.add(jarFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user