package com.crawljax.examples;

import com.crawljax.core.CrawljaxController;
import com.crawljax.core.configuration.CrawlSpecification;
import com.crawljax.core.configuration.CrawljaxConfiguration;

public class JarRunner {
	public static void main(String[] args) {
		if (args.length < 1) {
			System.err.println("Please give an url as first argument to Crawljax");
			System.exit(1);
		}
		CrawlSpecification crawler = new CrawlSpecification(args[0]);
		crawler.clickDefaultElements();

		CrawljaxConfiguration config = new CrawljaxConfiguration();

		config.setCrawlSpecification(crawler);

		try {
			CrawljaxController crawljax = new CrawljaxController(config);
			crawljax.run();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}

Add a runner to be used as main after packaging.
Add a runner to be used as main after packaging.

git-svn-id: 6e5f6f61bd1b925b71fe8065f445f9178a317ca5@316 7701cf9b-ed3c-0410-a7c3-1ff289697e89
