- Timestamp:
- 09/09/11 06:23:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/Runner.java
r112 r171 2 2 3 3 import de.ugoe.cs.util.console.CommandExecuter; 4 import de.ugoe.cs.util.console.Console; 4 5 import de.ugoe.cs.util.console.TextConsole; 5 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 */ 6 18 public class Runner { 7 19 8 20 /** 21 * <p> 22 * Main method of the application. 23 * </p> 24 * 9 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 10 29 */ 11 30 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"); 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"); 15 37 TextConsole textConsole = new TextConsole(); 16 if ( args.length>=1) {17 for ( String command : args) {38 if (args.length >= 1) { 39 for (String command : args) { 18 40 CommandExecuter.getInstance().exec(command); 19 41 }
Note: See TracChangeset
for help on using the changeset viewer.