Providing a build specification template for your developers
Normally, developers working at their desktops each create their own build specifications, either manually, or automatically as part of the Klocwork analysis. As an alternative, you can create a build specification template that can be used with kwcheck, Klocwork Desktop and kwbuildproject . A build specification template is a version of build specification that uses variables for any paths that may differ on developer desktops. The build engineer can create one file that can be shared with all developers. When the build specification template is used to run a Klocwork analysis, the variable references are replaced with variable values. This means that a build specification created in one build environment can be used in another build environment. To effectively use a server project build specification template in a desktop project, these requirements must be met:
Important: Using a build specification template can produce results that are less accurate than using a build specification, because the desktop project has a high chance of not matching up with the server project. Therefore, using a build specification is recommended for maximum accuracy.
A build specification template can be useful in an environment such as the following:
Overview of creating and using a build specification template
The kwpsroot variableThe kwpsroot variable is a variable used in a build specification template that is automatically substituted with the name of the parent directory of the kwcheck project settings directory (named .kwps by default). For example, if the path to .kwps is /home/joeuser/dev/myproject/.kwps, then %kwpsroot% will be expanded to /home/joeuser/dev/myproject. If all paths in the project may be specified relative to the location of the .kwps parent directory, the build team needs to define only the kwpsroot variable with the --variable option of kwinject. In this case, developers do not have to set variable values with kwcheck set-var. |