Skip to content
SWP-Comp-Ch3ck3r edited this page Apr 26, 2013 · 4 revisions

This is a little guide on how to set up your eclipse properly to use the given directory structure.

Selecting your workspace

First of all you need to select your workspace directory. This can be any directory you want but you should keep it outside of /code.

workspace

Adding a Component

Now create a new Java Project. Use the name of the component you want to develop as the project name. In this example i chose ast. Uncheck Use default location and enter the path to the submodule instead.

new project

Click on the next button. Make sure the directories src and test are added as source directories.

source folders

Now switch to the tab libraries and add all the libraries from the /code/lib directory .

source folders

Now click on finish.

This procedure is used for all the components in the same way.

Setting up the Interfaces

The above method works for all components of the project. The only exception is the interfaces project which is inside the /code/common submodule. Here is how to set up the Interfaces project:

Create a new Java Project and call it interfaces. Uncheck Use default location and choose the interface folder within the git submodule.

source folders

click on finish.

The interfaces project does not contain any tests. Therefore there is no source folder test and you do not need to add the libraries from /code/lib

Component wide tests

Each component has its own test directory to use for JUnit tests. But those JUnit tests are only for the single component they are in. For tests across several components the folder /code/test was created. This folder contains component wide tests. It is set up the same way the other components are set up but has no src folder.

Clone this wiki locally