Kotlin command-line syntax

The translation of Kotlin code is similar to the translation of Java code. To translate Kotlin code, all types defined in a library that are referenced in the code must have a corresponding definition in the source code, a class file, or a JAR file. Include all source files on the OpenText SAST command line.

The basic command-line syntax to translate Kotlin code is shown in the following example:

sourceanalyzer –b <build_id> -cp <classpath> [<translation_options>] <files>

where

For descriptions of all the available Kotlin-specific command-line options, see Kotlin command-line options.