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.
Topic revision: r3 - 2013-01-06
- unknown