Last change
on this file since 173 was
171,
checked in by sherbold, 13 years ago
|
- code documentation and formatting
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1] | 1 | package de.ugoe.cs.eventbench;
|
---|
| 2 |
|
---|
| 3 | import de.ugoe.cs.util.console.CommandExecuter;
|
---|
[171] | 4 | import de.ugoe.cs.util.console.Console;
|
---|
[1] | 5 | import de.ugoe.cs.util.console.TextConsole;
|
---|
| 6 |
|
---|
[171] | 7 | /**
|
---|
| 8 | * <p>
|
---|
| 9 | * Start-up class of the application.
|
---|
| 10 | * </p>
|
---|
| 11 | * <p>
|
---|
| 12 | * It sets up and starts the {@link Console}.
|
---|
| 13 | * </p>
|
---|
| 14 | *
|
---|
| 15 | * @author Steffen Herbold
|
---|
| 16 | * @version 1.0
|
---|
| 17 | */
|
---|
[1] | 18 | public class Runner {
|
---|
| 19 |
|
---|
| 20 | /**
|
---|
[171] | 21 | * <p>
|
---|
| 22 | * Main method of the application.
|
---|
| 23 | * </p>
|
---|
| 24 | *
|
---|
[1] | 25 | * @param args
|
---|
[171] | 26 | * if parameters are defined, they are interpreted as commands
|
---|
| 27 | * for the {@link Console} and executed before the user can use
|
---|
| 28 | * the console; can be used to perform batch operations
|
---|
[1] | 29 | */
|
---|
| 30 | public static void main(String[] args) {
|
---|
[171] | 31 | CommandExecuter.getInstance().addCommandPackage(
|
---|
| 32 | "de.ugoe.cs.eventbench.commands");
|
---|
| 33 | CommandExecuter.getInstance().addCommandPackage(
|
---|
| 34 | "de.ugoe.cs.eventbench.windows.commands");
|
---|
| 35 | CommandExecuter.getInstance().addCommandPackage(
|
---|
| 36 | "de.ugoe.cs.eventbench.web.commands");
|
---|
[1] | 37 | TextConsole textConsole = new TextConsole();
|
---|
[171] | 38 | if (args.length >= 1) {
|
---|
| 39 | for (String command : args) {
|
---|
[112] | 40 | CommandExecuter.getInstance().exec(command);
|
---|
| 41 | }
|
---|
| 42 | }
|
---|
[1] | 43 | textConsole.run(true);
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.