-
Notifications
You must be signed in to change notification settings - Fork 54
How to update to a new Checkstyle core version
Roman Ivanov edited this page Nov 4, 2019
·
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 release page. - Download matching Checkstyle sources zip:
checkstyle-checkstyle-X.X.zip
. - Copy both files to
<eclipse-cs-repo-dir>/net.sf.eclipsecs.checkstyle
.
- Update OSGI manifest (bundle classpath) net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF to reference the new
checkstyle-X.X-all.jar
. - Update the net.sf.eclipsecs.checkstyle/.classpath by adding the checkstyle-checkstyle-X.X.zip as source attachment to the checkstyle-X.X-all.jar.
- Update the net.sf.eclipsecs.checkstyle/build.properties to include the new
checkstyle-X.X-all.jar
. - Remove the old
checkstyle-X.X-all.jar
andcheckstyle-checkstyle-X.X.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 in webbrowser, and 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. (TODO!!!: explain how exactly to do this, I do not know now)