source: trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/Runner.java @ 871

Last change on this file since 871 was 871, checked in by pharms, 12 years ago
  • added some comments
File size: 859 bytes
Line 
1package de.ugoe.cs.autoquest.htmlmonitor;
2
3import de.ugoe.cs.util.console.Console;
4import de.ugoe.cs.util.console.TextConsole;
5
6/**
7 * <p>
8 * implements the main method to start the {@link HtmlMonitor}.
9 * </p>
10 *
11 * @author Patrick Harms
12 * @version 1.0
13 */
14public class Runner {
15
16    /**
17     * <p>
18     * Main method of the application.
19     * </p>
20     *
21     * @param args command line arguments
22     */
23    public static void main(String[] args) {
24        new TextConsole();
25       
26        HtmlMonitor monitor = new HtmlMonitor(args);
27        try {
28            monitor.init();
29        }
30        catch (HtmlMonitorException e) {
31            Console.printerrln("could not initialize HTML monitor server: " + e.getMessage());
32            Console.logException(e);
33        }
34       
35        monitor.start();
36    }
37}
Note: See TracBrowser for help on using the repository browser.