mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external build: add jps plugins to classpath when IDEA is started by a plugin run configuration
This commit is contained in:
+5
@@ -73,9 +73,14 @@ public class CompileServerClasspathManager {
|
||||
else if (baseFile.isDirectory()) {
|
||||
for (String relativePath : StringUtil.split(serverPlugin.getClasspath(), ";")) {
|
||||
final File jarFile = new File(new File(baseFile, "lib"), relativePath);
|
||||
File classesDir = new File(baseFile, "classes");
|
||||
if (jarFile.exists()) {
|
||||
classpath.add(jarFile.getPath());
|
||||
}
|
||||
else if (classesDir.isDirectory()) {
|
||||
//'plugin run configuration': all module output are copied to 'classes' folder
|
||||
classpath.add(classesDir.getPath());
|
||||
}
|
||||
else {
|
||||
//development mode: add directory out/classes/production/<jar-name> to classpath, assuming that jar-name is equal to module name
|
||||
final String moduleName = FileUtil.getNameWithoutExtension(PathUtil.getFileName(relativePath));
|
||||
|
||||
Reference in New Issue
Block a user