Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions key.ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ run {
//systemProperties["KeyDebugFlag"] = "on"
//args "--experimental"

// enable assertion
jvmArgs += "-ea"

// this can be used to solve a problem where the OS hangs during debugging of popup menus
// (see https://docs.oracle.com/javase/10/troubleshoot/awt.htm#JSTGD425)
jvmArgs += "-Dsun.awt.disablegrab=true"
Expand Down
20 changes: 10 additions & 10 deletions key.ui/src/main/java/de/uka/ilkd/key/core/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ public static void main(final String[] args) {
public Integer call() throws Exception {
Debug.ENABLE_DEBUG = debug;

try {
// weigl: You can set assertion status via the system class loader,
// but can not get its current status. Here a workaround.
assert false;
LOGGER.info("Assertion evaluation is disabled.");
} catch (AssertionError e) {
LOGGER.info("Assertion evaluation is enabled.");
}

if (tacletDir != null) {
System.setProperty(RuleSourceFactory.STD_TACLET_DIR_PROP_KEY,
tacletDir.toAbsolutePath().toString());
Expand Down Expand Up @@ -301,11 +310,7 @@ public Integer call() throws Exception {
LOGGER.info("Running in debug mode");
}

if (Debug.ENABLE_ASSERTION) {
LOGGER.info("Using assertions");
} else {
LOGGER.info("Not using assertions");
}
LOGGER.info("Debug.ENABLE_ASSERTION = {}", Debug.ENABLE_ASSERTION);

if (riflFileName != null) {
LOGGER.info("Loading RIFL specification from {}", riflFileName);
Expand Down Expand Up @@ -351,11 +356,6 @@ public Integer call() throws Exception {

AbstractMediatorUserInterfaceControl ui = createUserInterface(inputFiles);

System.out.println(inputFiles.isEmpty());
System.out.println(examplesFolder);
System.out.println(ui);
System.out.println(showExampleChooserIfExamplesDirIsDefined);

if (inputFiles.isEmpty()) {
if (examplesFolder != null
&& showExampleChooserIfExamplesDirIsDefined
Expand Down
Loading