Last change
on this file since 180 was
171,
checked in by sherbold, 13 years ago
|
- code documentation and formatting
|
File size:
1.2 KB
|
Line | |
---|
1 | package de.ugoe.cs.eventbench;
|
---|
2 |
|
---|
3 | import de.ugoe.cs.util.console.CommandExecuter;
|
---|
4 | import de.ugoe.cs.util.console.Console;
|
---|
5 | import de.ugoe.cs.util.console.TextConsole;
|
---|
6 |
|
---|
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 | */
|
---|
18 | public class Runner {
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * <p>
|
---|
22 | * Main method of the application.
|
---|
23 | * </p>
|
---|
24 | *
|
---|
25 | * @param args
|
---|
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
|
---|
29 | */
|
---|
30 | public static void main(String[] args) {
|
---|
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");
|
---|
37 | TextConsole textConsole = new TextConsole();
|
---|
38 | if (args.length >= 1) {
|
---|
39 | for (String command : args) {
|
---|
40 | CommandExecuter.getInstance().exec(command);
|
---|
41 | }
|
---|
42 | }
|
---|
43 | textConsole.run(true);
|
---|
44 | }
|
---|
45 |
|
---|
46 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.