mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-181118 Run configuration fails in debug
This commit is contained in:
@@ -64,6 +64,9 @@ public class CaptureAgent {
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
setupJboss();
|
||||
|
||||
if (DEBUG) {
|
||||
System.out.println("Capture agent: ready");
|
||||
}
|
||||
@@ -74,6 +77,16 @@ public class CaptureAgent {
|
||||
}
|
||||
}
|
||||
|
||||
private static void setupJboss() {
|
||||
String modulesKey = "jboss.modules.system.pkgs";
|
||||
String property = System.getProperty(modulesKey, "");
|
||||
if (!property.isEmpty()) {
|
||||
property += ",";
|
||||
}
|
||||
property += "com.intellij.rt";
|
||||
System.setProperty(modulesKey, property);
|
||||
}
|
||||
|
||||
private static String readSettings(String path) {
|
||||
FileReader reader = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user