-
Notifications
You must be signed in to change notification settings - Fork 55
How to update to a new Checkstyle core version
Michael Keppler edited this page Jan 30, 2018
·
11 revisions
This page describes how to update eclipse-cs to use a new Checkstyle core version.
- eclipse-cs Git repo is cloned
- eclipse-cs projects are imported into an Eclipse workspace (PDE recommended)
- project can be built locally with Maven
- Download latest
checkstyle-X.X-all.jar
from Checkstyle Sourceforge page:https://sourceforge.net/projects/checkstyle/files/checkstyle/
- Download matching Checkstyle sources zip:
checkstyle-X.X-src.zip
- Copy both files to
<eclipse-cs-repo-dir>/net.sf.eclipsecs.checkstyle
- Update OSGI manifest (bundle classpath)
<eclipse-cs-repo-dir>/net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF
to reference the newcheckstyle-X.X-all.jar
- Update the project classpath by adding the checkstyle-X.X-src.zip as source attachment to the checkstyle-X.X-all.jar
- Remove the old
checkstyle-X.X-all.jar
andcheckstyle-X.X-src.zip
- Check projects
net.sf.eclipsecs.core
andnet.sf.eclipsecs.ui
for compile errors due to potential Checkstyle API changes. Make required changes if necessary. - Open Checkstyle release notes (
http://checkstyle.sourceforge.net/releasenotes.html
) in webbrowser check all listed changes between the previously used Checkstyle version and the new version for changes relevant to eclipse-cs metadata - Update the eclipse-cs metadata in
<eclipse-cs-repo-dir>/net.sf.eclipsecs.checkstyle/metadata
. The metadata is used by the eclipse-cs configuration editor to configure all available checks and their potential options via UI. - Requires PDE: Start a runtime workspace (a new eclipse workspace using the eclipse-cs plugin projects) and test the changes.