Translation options
The following table describes the translation options.
| Translation option | Description |
|---|---|
| Specifies a build ID. OpenText SAST uses a build ID to track the files that are compiled and combined as part of a build, and then later, to scan those files. Equivalent property name: |
-disable-language <languages> | Specifies a colon-separated list of languages to exclude from the translation phase. The valid language values are
Equivalent property name: |
-enable-language <languages> | Specifies a colon-separated list of languages to translate. The valid language values are
Equivalent property name: |
| Specifies the files to exclude from the translation. Files excluded from translation are also not scanned. Separate multiple file paths with semicolons (Windows) or colons (non-Windows). The following example excludes all Java files in any sourceanalyzer -b MyProject –cp "**/*.jar" "**/*" -exclude "**/Test/*.java" See Specifying files and directories for more information on how to use file specifiers. Equivalent property name: |
| Specifies the source file encoding type. OpenText SAST enables you to scan a project that contains differently encoded source files. To work with a multi-encoded project, you must specify the Valid encoding names are from the Typically, if you do not specify the encoding type, OpenText SAST uses Equivalent property name: |
| When specified before a compiler command line, OpenText SAST translates the source file but does not run the compiler. |
| Specifies the file type for source files that have no extension. The valid file type values are |
-disable-compiler-resolution | Specifies to include build script files that have the same name as a build tool (such as gradlew) during translation as source files. Equivalent property name: |
-project-root | Specifies the directory to store intermediate files generated in the translation and analysis phases. OpenText SAST makes extensive use of intermediate files located in this project root directory. In some cases, you can achieve better performance for analysis by making sure this directory is on local storage rather than on a network drive. Equivalent property name: |