Configuring Eclipse

You will need to pass through few simple steps in order to configure Eclipse IDE for developing our project. These steps are not obligatory, but they will make your work much easier. If you don't have our project, checkout it from SVN repository before starting Eclipse configuration.

1. Configure your Eclipse user name. It will be shown in any new file you create. Open eclipse.ini file from your Eclipse installation directory and add line:

-Duser.name=Your Name

2. Open Eclipse (or restart it) and then open Window ->Preferences.

3. Select Java ->Code Style -> Code Templates. Click on Import... button, open Tudas/config/eclipse/tudas_codemplates.xml, check Automatically add comments for new methods and types and click Apply button.

4. Select Java ->Code Style -> Formatter. Click on Import... button, open Tudas/config/eclipse/tudas_fromatter.xml and click Apply button.

5. Select Checkstyle tab. If you don't have Checkstyle plugin already installed, you have to install it (follow the instructions here).

6. Click on New... button, from Type section select External Configuration File, enter name of your checkstyle configuration (i. e. TUDAS Checks), and click Browse... Now you have to navigate to our checkstyle file: Tudas/config/eclipse/tudas_checks.xml. Open it and click OK. Choose your configuration from Global Check Configurations and click Set as Default.

7. Exclude from checking generated packages - open right-click menu on server project, select Properties->Checkstyle. In section Exclude from checking... select files from packages: and click Change... In Filter packages window, check generated and tudasUtil packages, and click OK. Repeat this action for javaClient project.

8. Click OK button. Select projects in Project Explorer, open right-click menu and select Checkstyle ->Activate Checkstyle.

9. Server module uses AspectJ for logging and accounting features. Download Eclipse plugin: AspectJ Development Tools to manage aspects easily. It may be needed to delete server project and import it once again.

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2013-01-06 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback