|
Last change
on this file since 126 was
112,
checked in by sherbold, 15 years ago
|
- execution of console now takes parameters; the parameters are interpreted as commands and executed before starting the console
|
|
File size:
702 bytes
|
| Line | |
|---|
| 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");
|
|---|
| 13 | CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.eventbench.windows.commands");
|
|---|
| 14 | CommandExecuter.getInstance().addCommandPackage("de.ugoe.cs.eventbench.web.commands");
|
|---|
| 15 | TextConsole textConsole = new TextConsole();
|
|---|
| 16 | if( args.length>=1 ) {
|
|---|
| 17 | for( String command : args ) {
|
|---|
| 18 | CommandExecuter.getInstance().exec(command);
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 | textConsole.run(true);
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | }
|
|---|
Note: See
TracBrowser
for help on using the repository browser.