02 - Use Eclipse to develop

Eclipse is the IDE chosen by the Squash TA team. We recommand to you the use of Eclipse JUNO 4.2.

Note: if you want to develop something related to the Squash TA eclipse plugin, you must have "Eclipse IDE for Java EE Developers", otherwise it is not mandatory.

Eclipse plugins

After downloading Eclipse, you have to install several plugins.

From the marketplace

  • MercurialEclipse

  • Maven Integration for Eclipse

Installation as new software

  • Maven Archiver: download it here

  • Groovy: the versions available in the marketplace are not sufficient, download Groovy's last version here

  • (we're using Groovy Compiler 2.0)

  • squash-ta-eclipse-plugin: you may also want to have our eclipse plugin for integration tests, find its last version here

Eclipse configuration

You have yet to do several configurations in Windows > Preferences page.

  • In the General > Workspace menu, choose UTF-8 as text file encoding.

  • In the General > Editors > Text editors menu, check "insert spaces for tabs".

  • In the Groovy > DSLD menu, check "Disable DSLD support in your workspace".

  • In the Java > Code Style > Formatter menu, import the squash-formatter.xml joined to this article.

  • In the XML > XML Files > Editor menu:

    • Set "Line width" to 120

    • Check "Indent using spaces" ant put the "Indentation size" to "2"

Import project

Before importing any project, be sure to have done all the configuration above, and also qualimetric configuration if you want to: it will not be taken into account if you configure it after the import.

Import the Bitbucket repository you need in Eclipse as a Maven project, and then run a clean install on it.