@@ -239,6 +239,15 @@ public static void main(final String[] args) {
239239 public Integer call () throws Exception {
240240 Debug .ENABLE_DEBUG = debug ;
241241
242+ try {
243+ // weigl: You can set assertion status via the system class loader,
244+ // but can not get its current status. Here a workaround.
245+ assert false ;
246+ LOGGER .info ("Assertion evaluation is disabled." );
247+ } catch (AssertionError e ) {
248+ LOGGER .info ("Assertion evaluation is enabled." );
249+ }
250+
242251 if (tacletDir != null ) {
243252 System .setProperty (RuleSourceFactory .STD_TACLET_DIR_PROP_KEY ,
244253 tacletDir .toAbsolutePath ().toString ());
@@ -301,11 +310,7 @@ public Integer call() throws Exception {
301310 LOGGER .info ("Running in debug mode" );
302311 }
303312
304- if (Debug .ENABLE_ASSERTION ) {
305- LOGGER .info ("Using assertions" );
306- } else {
307- LOGGER .info ("Not using assertions" );
308- }
313+ LOGGER .info ("Debug.ENABLE_ASSERTION = {}" , Debug .ENABLE_ASSERTION );
309314
310315 if (riflFileName != null ) {
311316 LOGGER .info ("Loading RIFL specification from {}" , riflFileName );
@@ -351,11 +356,6 @@ public Integer call() throws Exception {
351356
352357 AbstractMediatorUserInterfaceControl ui = createUserInterface (inputFiles );
353358
354- System .out .println (inputFiles .isEmpty ());
355- System .out .println (examplesFolder );
356- System .out .println (ui );
357- System .out .println (showExampleChooserIfExamplesDirIsDefined );
358-
359359 if (inputFiles .isEmpty ()) {
360360 if (examplesFolder != null
361361 && showExampleChooserIfExamplesDirIsDefined
0 commit comments