Ignore:
Timestamp:
09/09/11 06:23:36 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/Runner.java

    r112 r171  
    22 
    33import de.ugoe.cs.util.console.CommandExecuter; 
     4import de.ugoe.cs.util.console.Console; 
    45import de.ugoe.cs.util.console.TextConsole; 
    56 
     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 */ 
    618public class Runner { 
    719 
    820        /** 
     21         * <p> 
     22         * Main method of the application. 
     23         * </p> 
     24         *  
    925         * @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 
    1029         */ 
    1130        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"); 
    1537                TextConsole textConsole = new TextConsole(); 
    16                 if( args.length>=1 ) { 
    17                         for( String command : args ) { 
     38                if (args.length >= 1) { 
     39                        for (String command : args) { 
    1840                                CommandExecuter.getInstance().exec(command); 
    1941                        } 
Note: See TracChangeset for help on using the changeset viewer.