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
Locate the plug-ins home directory. This should be at
Copy the files
subdirectory lib in the plug-ins home directory.
Edit the file
the plug-ins home directory to add the jars to the plugin
<?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
has to be done once, so that eclipse updates it internal plugin