We have to admit, that we are sometimes (always?) a little bit slow with releasing new versions of Checkclipse when a new version of Checkstyle is released (we try to improve this). In such cases you can help yourself, by updating only the Checkstyle jar files in the plug-in.
Note: It always might happen, that Checkstyle changes the API with a new major release. In this cases Checkclipse might not (or not correcly) work with this new release. If you hit such a problem, open a bug report at the project homepage at sourceforge .
The following explains how to update the Checkclipse Plugin to a new Checkstyle version.
First you have to get the current version of Checkstyle you want to use.
Download an available binary package from SourceForge.
Grab the current sources from CVS and compile it yourself (see the Checkstyle homepage).
Either way, you need the files
checkstyle-all-
and Version
.jarcheckstyle-optional-
.Version
.jar
Locate the plug-ins home directory. This should be at
eclipse-install-dir
/plugins/de.mvmsoft.checkclipse_Version
Copy the files checkstyle-all-
and
Version
.jarcheckstyle-optional-
to the
subdirectory lib in the plug-ins home directory.Version
.jar
Edit the file plugin.xml
in
the plug-ins home directory to add the jars to the plugin
classpath.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="de.mvmsoft.checkclipse"
name="Checkclipse Style Checker"
version="2.0.0"
provider-name="Marco van Meegen"
class="de.mvmsoft.checkclipse.CheckclipsePlugin">
<runtime>
<library name="checkclipse.jar"/>
<library name="lib/checkstyle-all-Version.jar" />
<library name="lib/checkstyle-optional-Version.jar" />
</runtime>
...
Start eclipse with the parameter -clean
. This
has to be done once, so that eclipse updates it internal plugin
registry.