The tools required for this integration are included in the Command Line Build Tools component of the Klocwork Server package.
You must install the Command Line Build Tools component in one of the following configurations:
- Install Klocwork to the same path on all Electric Cloud agent hosts.
- Specify the path to the Klocwork installation on the command line.
When using the second of these two configurations, you must specify both the Klocwork installation directory and your current working directory to emake. You can do this in one of two ways:
- edit the EMAKE_ROOT environment variable, and export the variable, or
- use the kwecbuild option --ec-option to specify the emake option --emake-root . For example:
When you use the --emake-root option or the EMAKE_ROOT environment variable, Electric Cloud no longer distributes the current working directory to the agents by default. This is why you need to specify both the Klocwork installation directory path and your current working directory.
Note that when using Cygwin, you need to specify the --cmd-line option of kwlogparser.