Last change
on this file since 170 was
112,
checked in by sherbold, 13 years ago
|
- execution of console now takes parameters; the parameters are interpreted as commands and executed before starting the console
|
File size:
702 bytes
|
Rev | Line | |
---|
[1] | 1 | package de.ugoe.cs.eventbench;
|
---|
| 2 |
|
---|
| 3 | import de.ugoe.cs.util.console.CommandExecuter;
|
---|
| 4 | import de.ugoe.cs.util.console.TextConsole;
|
---|
| 5 |
|
---|
| 6 | public class Runner {
|
---|
| 7 |
|
---|
| 8 | /**
|
---|
| 9 | * @param args
|
---|
| 10 | */
|
---|
| 11 | public static void main(String[] args) {
|
---|
| 12 | CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.eventbench.commands");
|
---|
[52] | 13 | CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.eventbench.windows.commands");
|
---|
[51] | 14 | CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.eventbench.web.commands");
|
---|
[1] | 15 | TextConsole textConsole = new TextConsole();
|
---|
[112] | 16 | if( args.length>=1 ) {
|
---|
| 17 | for( String command : args ) {
|
---|
| 18 | CommandExecuter.getInstance().exec(command);
|
---|
| 19 | }
|
---|
| 20 | }
|
---|
[1] | 21 | textConsole.run(true);
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.