Kwgradlew
The kwgradlew command creates a Java build specification based on the information in your Gradle wrapper.
You can also create a build specification using your Gradle build file. For more information, see Kwgradle.
Prerequisites
Before you can create a build specification, you need to
- install the Server package. See Installing Klocwork.
- ensure that the Gradle task is configured to use a supported version of Gradle. See Supported Java build tools to see what versions are supported.
- have the path to the JVM executables set in the PATH environment variable:
- Unix:
<path_to_JDK>/bin:<klocwork_install>/bin:$PATH
- Windows:
<path_to_JDK>\bin;<klocwork_install>\bin;%PATH%
- Unix:
For more information, see Creating a Java build specification.
Usage
kwgradlew <gradle_options>
where <gradle_options> are any arguments required for your gradlew build.
Options
Name (and short name) | Description |
---|---|
--help (-h) | display help |
--version | display kwgradlew version |
--output <file> (-o) | write the build specification to <file>. By default, the build specification is written to kwinject.out in the current working directory. |
--update (-u) | when specified, the existing build specification is updated with the results of the new incremental build instead of overwriting it. |
--build-file <string> | path to the Gradle wrapper file. Absolute or relative paths are supported. Default is build.gradle in the current directory. |
--project-dir (string> (-p) | the project directory. Default is the current directory, or <install_dir>/bin. |
--debug-level <integer> | print debug information to the console. Default is 0 (no debug output). |