Skip to content

Crawljax Development

alexnederlof edited this page Apr 1, 2013 · 11 revisions

Requirements

We use Apache Maven version 3.0.3 or later to build and manage the dependencies of Crawljax.

Crawljax Development: through Maven/Eclipse

  • clone crawljax from GitHub.

  • run: mvn install. To make sure you get the latest version of Selenium WebDriver, run mvn install -U.

  • Make sure you have the Maven Eclipse plugin installed from the Eclipse marketplace.

  • In Eclipse, go to File > Import..., and choose Existing maven projects. Find the Crawljax directory you have cloned and select it for import. Crawljax is now a multi-module project, so select all the modules you need. The crawling engine is in the core module.

  • You can also have a look at one of the example classes in the example module.

Formatting code

Format the code according to the eclipse-formatter.xml file in the root dir. To automatically format your code on each save in Eclipse:

  • Under Preferences, choose Java --> Editor --> Save Actions. Check the "Perform the selected actions on save", and check the "Format source code" box.