Changeset 674 for trunk/quest-runner/src
- Timestamp:
- 08/28/12 16:42:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-runner/src/main/java/de/ugoe/cs/quest/ui/Runner.java
r660 r674 5 5 import java.io.IOException; 6 6 import java.util.List; 7 import java.util.logging.Level; 7 8 8 9 import joptsimple.OptionException; … … 70 71 parser.accepts("ui", "Allowed values: text, swt").withRequiredArg() 71 72 .ofType(UITYPE.class).defaultsTo(UITYPE.text); 72 OptionSpec<L OG4JTYPE> trace =73 parser.accepts("trace", "Allowed values: enable, disable").withRequiredArg()74 .ofType(L OG4JTYPE.class).defaultsTo(LOG4JTYPE.enable);73 OptionSpec<Level> trace = 74 parser.accepts("trace", "Allowed values: OFF, SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL").withRequiredArg() 75 .ofType(Level.class).defaultsTo(Level.WARNING); 75 76 OptionSet options = parser.parse(args); 76 77 … … 92 93 { 93 94 case text: 94 TextConsole textConsole = new TextConsole(); 95 if (options.valueOf(trace) == LOG4JTYPE.disable) { 96 textConsole.setDebug(false); 97 } 95 TextConsole textConsole = new TextConsole(options.valueOf(trace)); 98 96 for (String command : startupCommands) { 99 97 CommandExecuter.getInstance().exec(command); 100 98 } 101 textConsole.run( true);99 textConsole.run(); 102 100 break; 103 101 case swt: 104 MainWindow mainWindow = new MainWindow(startupCommands );102 MainWindow mainWindow = new MainWindow(startupCommands, options.valueOf(trace)); 105 103 mainWindow.open(); 106 104 break;
Note: See TracChangeset
for help on using the changeset viewer.