...
Command Line/Ant | Maven Plugin | Description | Default |
---|---|---|---|
-f, --file | modelFile | The input file specified either as OS path or URL | - |
-m, --modelsdir | modelsDirectory | Base directory for the | - |
-o, --outdir | projectOutputDirectory | Base output directory for the generated files. For maven plugin defaults to target/generated-[test]-sources/nvx-adm | - |
-c, --classesdir | classesOutputDirectory | Classes output folder (to which generated resoures should be copied). May be specified multiple times to copy to multiple directories. | - |
-e, --encoding | encodingType | Encoding type of content underlying the generated classes (Xbuf | Protobuf | Json) | Protobuf |
-x, --xpcompat | protoXbufGenerationCompatibility | Wire compatibility between protobuf and xbuf generated classes (None | Xbuf | Protobuf | Protobuf |
-y, --emptyifnullarray | generateArrayGetterEmptyIfNull | Instructs the code generator return empty arrays instead of null for unset array fields | false |
-n, --namespace | namespace | Namespace override of model parsed from the input file (overrides namespace in model file if supplied) | - |
-p, --protodir | N/A | An additonal directory in which to search for imported .proto files. | - |
-d, --directive | directives | A key=value pair specifying a code generation directive. (May be specified multiple times). See Directives below. | - |
-b, --buildinfo | buildInfo | String with build-time information such as project version, timestamp or machine. This is added to the AdmGenerated annotation of generated classes. | - |
-i, --incremental | incrementalBuild | Trigger incremental code generation - run only if something changed since last run | false (true for maven plugin) |
N/A | useBasicDeltaDetection | When running an incremental build, basic delta detection indicates thatmodel'sare rebuilt based on whether source model timestamp. With advanceddeltadetection dependencies are examined as well. | false |
-u, --bundledir | modelBundleOutputDirectory | Directory to which to output model XML and IDL files if applicable | - |
N/A | generateModelBundle | Indicates whether models with all their dependencies and IDLs should be output to modelBundleOutputDirectory | false |
N/A | codegenListenerClassName | Class name of external listener to receive events from code generator. See ADM Code Generation Events. | - |
N/A | codegenListenerProperties | Additional properties to pass to the constructed code gen listener. | - |
...