X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=crawler%2Fbasic%2Fsrc%2Forg%2Fwamblee%2Fcrawler%2Fimpl%2FApp.java;h=6246453abba66ce5e4cf570cca4aa6b995dc1933;hb=8bdf7301b21a7824933fac2b75caf410b7dd5923;hp=15e740a628df1b1a2d8d363755cc170235b493de;hpb=d4bb47fd284738756cd112b788a49caa1a9d5c38;p=utils diff --git a/crawler/basic/src/org/wamblee/crawler/impl/App.java b/crawler/basic/src/org/wamblee/crawler/impl/App.java index 15e740a6..6246453a 100644 --- a/crawler/basic/src/org/wamblee/crawler/impl/App.java +++ b/crawler/basic/src/org/wamblee/crawler/impl/App.java @@ -35,15 +35,29 @@ import org.wamblee.crawler.PageException; /** * Entry point for the crawler. */ -public class App { +public final class App { + + /** + * Disabled constructor. + * + */ + private App() { + // Empty + } private static final Log LOG = LogFactory.getLog(App.class); private static final String LOG_FILE = "crawler.log"; - public static void main(String[] args) throws Exception { - String configFileName = args[0]; - String starturl = args[1]; + /** + * Runs a test program. + * @param aArgs Arguments. First argument is the crawler config file name and second argument is + * the start url. + * @throws Exception In case of problems. + */ + public static void main(String[] aArgs) throws Exception { + String configFileName = aArgs[0]; + String starturl = aArgs[1]; FileOutputStream fos = new FileOutputStream(new File(LOG_FILE)); PrintStream os = new PrintStream(fos);