/**
* 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);