IDEA-181118 Run configuration fails in debug

This commit is contained in:
Egor Ushakov
2017-10-26 16:25:20 +03:00
parent 8b44ba2766
commit 0e14ec6e9c
@@ -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 {