-
Notifications
You must be signed in to change notification settings - Fork 58
How to update to a new Checkstyle core version
Michael Keppler edited this page Apr 4, 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.jarfrom 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)
<eclipse-cs-repo-dir>/net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MFto reference the newcheckstyle-X.X-all.jar. - Update the project classpath by adding the checkstyle-checkstyle-X.X.zip as source attachment to the checkstyle-X.X-all.jar.
- Update the build.properties to include the new
checkstyle-X.X-all.jar. - Remove the old
checkstyle-X.X-all.jarandcheckstyle-checkstyle-X.X.zip. - Check projects
net.sf.eclipsecs.coreandnet.sf.eclipsecs.uifor 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.