- Timestamp:
- 04/03/12 10:19:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/Runner.java
r396 r407 63 63 OptionSpec<UITYPE> ui = parser.accepts("ui", "Allowed values: text, swt").withRequiredArg() 64 64 .ofType(UITYPE.class).defaultsTo(UITYPE.text); 65 OptionSpec<LOG4JTYPE> trace = parser.accepts("trace", "Allowed values: enable, disable").withRequiredArg().ofType(LOG4JTYPE.class).defaultsTo(LOG4JTYPE.enable); 65 66 OptionSet options = parser.parse(args); 66 67 … … 75 76 break; 76 77 default: 77 throw new AssertionError("reached source code that should be unreachable impossible");78 throw new AssertionError("reached source code that should be unreachable"); 78 79 } 79 80 … … 81 82 case text: 82 83 TextConsole textConsole = new TextConsole(); 84 if( options.valueOf(trace)==LOG4JTYPE.disable ) { 85 textConsole.setDebug(false); 86 } 83 87 for (String command : startupCommands) { 84 88 CommandExecuter.getInstance().exec(command); … … 91 95 break; 92 96 default: 93 throw new AssertionError("reached source code that should be unreachable impossible");97 throw new AssertionError("reached source code that should be unreachable"); 94 98 } 95 99 } catch (OptionException e) {
Note: See TracChangeset
for help on using the changeset viewer.