Cleaning up duplicated comments
If you have issues with duplicated comments in your project(s), you can run dbvalidate to delete the duplicated comments. The cleanup utility only leaves the most recent version of the comment as determined by citing time.
Prerequisite: Before running the cleanup utility, you must stop the server and backup your projects_root directory.
To execute the utility, run the following command:
java cp <server>\class\dbvalidate.jar com.klocwork.dbvalidate.RemoveDuplicateComments <projects_root> --all-projects (or project_name)
where
- <server> is the location of your Validate Server installation
- <projects_root> is the location of your projects_root folder
- --all-projects specifies that duplicated comments should be removed for all projects. If you prefer to specify a single project, specify the project name instead.
Examples
java cp C:\Klocwork\class\dbvalidate.jar com.klocwork.dbvalidate.RemoveDuplicateComments /local/tools/klocwork/server/projects_root --all-projects
java cp C:\Klocwork\class\dbvalidate.jar com.klocwork.dbvalidate.RemoveDuplicateComments /local/tools/klocwork/server/projects_root MyProject