Setting up Treetank in Eclipse
The following tutorial is based on the build workflow of Apache CXF (http://cxf.apache.org/setting-up-eclipse.html).
Install Eclipse + Eclipse plugins
The following plugins are necessary:
- Subclipse: Subversion Bridge for accessing source code
- Checkstyle: Checkstyle Plugin for checking your code against the given rules
- PMD: Source code analysis in the IDE
- Redmine Connector: Connector for Eclipse to this Platform, see Redmine and Eclipse for more information)
Possible additional recommend plugins are:
- FindBugs: Finding Bugs in Java Programs, similar to PMD
- Perfidix: Java Benchmarking Tool
- EclEmma: Code Coverage for Testcases
Note that installation of eclipse plugins is not possible in nfs-mounted home directories. Please move eclipse temporary to /tmp
for installation of plugins. Opening /tmp
is possible over the terminal with open /tmp
.
Check out sources:
The sources for Treetank are located under https://github.com/sebastiangraf/treetank . Make a checkout over the terminal to a folder called $localPart
in the rest of this post.
Compile sources:
Compile the new checked-out sources by typing on $localPart
:
This installs all local bundles in your local maven repo and makes it accessible for the upcoming workspace creation.
Create Treetank workspace:
Go to the treetank-eclipse bundle under $localPath/bundles/treetank-eclipse
and execute the creation process for a new Treetank workspace:
This creates an fresh empty workspace on the same level than $localPath
. If you want to have any other path for workspace you can set the parameter eclipse.workspace.dir
.
Note: This creates a new empty workspace.
5. Activate Profiles:
Go to Eclipse -> Preferences -> Checkstyle
and set the Disy Checks as default.
Additional Settings are:
- Formatter
- Code Templates with Header
6. Import Treetank into new workspace:
Open eclipse and import projects with
Right-Click -> Import -> Existing Maven Projects
Select the $localPath directory and import the necessary bundles.
Afterwards activate Checkstyle with
Right-Click on bundle -> Checkstyle -> Check code with Checkstyle
7. Bind Eclipse to Redmine:
Refer to this tutorial to bind your eclipse to this task-tracker Redmine and Eclipse.