Contents
- Using Command Option Abbreviations
- Davinci Developer Adaptive Code Generation
- DaVinci Developer Adaptive Automation Script Execution
- Common Parameters
- Troubleshooting
Using Command Option Abbreviations
The DaVinci Developer Adaptive CLI supports abbreviations for double-dash command options.
If the CLI finds exactly one match, then the command is executed. If the CLI finds multiple matches, execution of the CLI is cancelled.
Abbreviations are case-sensitive. The full command is case-insensitive.
Example
--listArxmlFiles
/ --listarxmlfiles
can be abbreviated to --listArxF
or --lAF
.
DaVinci Developer Adaptive Code Generation
Execute the code generation for a given DaVinci Developer Adaptive project.

Note: At least one of the options -g
, -v
, --fullValidation
, --listScopes
, --listGenerators
or --listArxmlFiles
must be specified.
Usage examples
Linux
./DVACfgCmd -p "./project.adpa" -g --genDataDir "./project/src-gen"
./DVACfgCmd --project "/project/arxml" --generate --genDataDir "/project/src-gen"
Windows
.\DVACfgCmd.exe -p ".\project.adpa" -g --genDataDir ".\project\src-gen"
.\DVACfgCmd.exe --project "\project\arxml" --generate --genDataDir "\project\src-gen"
Command Reference
Option | Arguments | Mandat | Description |
---|---|---|---|
-p, --project | <FILE_OR_DIR> | yes | Specifies the path to a project file(*.adpa). Without specifying It is also possible to specify a path to directory with AUTOSAR files(*.arxml), which will be loaded recursively. For this use case the option can be specified multiple times to load AUTOSAR files from several locations. Example: Note: It's not possible to specify a directory with AUTOSAR files and use the option |
-g, --generate |
| no | Validate and generate the given project specified in -p option. Unless otherwise stated all available scopes in the current model will be used. Use --scope to change scopes. Unless otherwise stated all available generators will be used. Use -m or -x to select/deselect generators. |
-v, --validate |
| no | Validate the given project specified in Unless otherwise stated all available scopes in the current model will be used. Use Unless otherwise stated all available generators will be used. Use This option cannot be specified with |
--fullValidation |
| no | Validate the whole model in the given project specified in -p option with all available generators. This option cannot be specified with This option will ignore |
--listScopes |
| no | Prints out available scopes in the current model and stops the execution of validation and generation. |
--listGenerators |
| no | Prints out available generators in the current BSW Package and stops the execution of validation and generation. |
--listArxmlFiles |
| no | Prints out loaded arxml files that are loaded from (i) existing projects and (ii) current BSW package. |
--sipRootPath | <DIR_PATH> | no | Deprecated. |
--bswPackageRootPath | <DIR_PATH> | no | Specifies the path of BSW Package root directory. Use this option if DVACfgCmd executable is not installed in |
--scope | <SCOPE_DEF> | no | Specifies the model scope that will be used in validation or generation. Use If this option is omitted all available scopes in the current model will be selected. A scope is specified by a AUTOSAR path to a root object in the current model. Syntax: This option can be used multiple times, to specify multiple scopes to validate or generate. Example:
|
-m, --modulesToGenerate | <GENERATORS> | no | Specifies the generators, which will be used in validation or generation. Use If empty (""), then no generators will be used. Separate multiple generators by a ','. Syntax: The identifier of a generator is the AUTOSAR path. Example: You could also pass the shortname of the generator, like " With the value Example: It means that all generators specified in the project file and also |
-x, --modulesToExclude | <GENERATORS> | no | Specifies the generators, which will not be used in validation or generation. Use All available generators will be used except those you specified in this option. Note: This option cannot be specified with Separate multiple generators by a ','. Syntax: The identifier of a generator is the AUTOSAR path. Example: You could also pass the shortname of the generator, like " |
--referencedProjectPath | <FILE_OR_DIR> | no | Specifies the search path, where a referenced project (specified in the project file) is located. The path could be a project file(*.adpa), a .adpa directory, a root-directory of a project or the parent directory of a root-directory of a project. Syntax: Example:
This option can be used multiple times, to specify multiple referenced projects. Example: |
--genDataDir | <GEN_DATA_DIR> | no | Specifies the output directory for the generated data files. Syntax: Example: If If |
--ignoredWarningIds | <VALIDATION_RESULT_IDS> | no | Specifies the Ids of validation results to be ignored. If the corresponding results have warning severity type, then it will be ignored and not printed out in the log. Separate multiple Ids by a ','. Syntax: Example: |
--includeAutosarWarnings |
| no | Enables the displaying of the non-generator AUTOSAR warnings. AUTOSAR warnings not reported during generation are suppressed by default unless this option is specified. This option shall be specified with |
--genArg | <GEN_ARGS> | no | Passes arguments to the specified code generators. Syntax: Multiple arguments for one generator can be passed in one If several Examples:
This option can be used multiple times, to pass arguments to multiple generators. Examples:
|
--genArgUniversal | <GEN_ARGS> | no | Passes arguments to all code generators. Syntax: Multiple arguments can be passed in one If several Example:
|
--reportFile | <REPORT_FILE> | no | Specifies the path to the Generation Execution Report file to export the execution results to a XML file. Syntax: Example: |
--reportArgs | <REPORT_ARGS> | no | Specifies special arguments for the Generation Execution Report. Available arguments:
If no Example: It means only HTML file will be created for Generation Execution Report. |
--saveProject |
| no | Saves the project after validation or generation. Generators may modify the project in the calculation phase before the actual generation has started. This option will persist those modifications. |
--keepGenTempFiles |
| no | Keeps the temporary files created during generation after the generation process is finished. |
--noDvMexMigration |
| no | Disables the execution of automatic MEX migration. |
--enableAutosarXsdSchemaValidation |
| no | Enables the AUTOSAR XSD schema validation during project loading. |
DaVinci Developer Adaptive Automation Script Execution
The DaVinci Developer Adaptive command line application executes user defined scripts.

Note: At least one of the options --scriptTask
, --scriptTaskHelp
or --listAvailableScriptTasks
must be specified.
Usage examples
Linux
./DVACfgCmd --scriptTask "ApplTask"
./DVACfgCmd --scriptTask "ProcessProject" --project "./project.adpa"
./DVACfgCmd --scriptTask "UpdateProjectTask" --taskArgs "--updateInputFolder "/home/InputDataFolder" --diagOnly"
Windows
.\DVACfgCmd.exe --scriptTask "ApplTask"
.\DVACfgCmd.exe --scriptTask "ProcessProject" --project ".\project.adpa"
.\DVACfgCmd.exe --scriptTask "UpdateProjectTask" --taskArgs "--updateInputFolder "\home\InputDataFolder" --diagOnly"
Command Reference
Option | Arguments | Mandat | Description |
---|---|---|---|
-s, --scriptTask | <TASK_NAME> | no | Specifies the script task to execute. Use Separate multiple tasks to execute by a ','. Syntax: The Example: |
--scriptTaskHelp | <TASK_NAME> | no | Displays the help of the specified script task. For the |
--listAvailableScriptTasks |
| no | Prints out available script tasks from the BSW Package, loaded project and locations specified in |
-p, --project | <FILE_OR_DIR> | no | Specifies the path to a project file(*.adpa). Without specifying It is also possible to specify a path to directory with AUTOSAR files(*.arxml), which will be loaded recursively. For this use case the option can be specified multiple times to load AUTOSAR files from several locations. Example: Note: It's not possible to specify a directory with AUTOSAR files and use the option |
--sipRootPath | <DIR_PATH> | no | Deprecated. Use |
--bswPackageRootPath | <DIR_PATH> | no | Specifies the path of BSW Package root directory. Use this option if DVACfgCmd executable is not installed in |
--referencedProjectPath | <FILE_OR_DIR> | no | Specifies the search path, where a referenced project (specified in the project file) is located. The path could be a project file(*.adpa), a .adpa directory, a root-directory of a project or the parent directory of a root-directory of a project. Syntax: Examples:
This option can be used multiple times, to specify multiple referenced projects. Example: |
--scriptLocations | <DIR_PATH> | no | Specifies an additional directory to search for scripts. Separate multiple directories by a ',' Syntax: |
--taskArgs | <TASK_ARGS> | no | Passes arguments to the specified script tasks. The arguments have the following syntax: Syntax: Example: If only one task is executed, the The For multiple task arguments the following syntax apply: Syntax: Example: If the task name is not unique, you can specify the full qualified name with script name. Example: Arguments with spaces inside the script task argument could be quoted with Example: |
--ignoreUserScriptLocations |
| no | Ignores all script locations of the scopes |
--noDvMexMigration |
| no | Disables the execution of automatic MEX migration. |
--enableAutosarXsdSchemaValidation |
| no | Enables the AUTOSAR XSD schema validation during project loading. |
Common Parameters
Command Reference
Option | Arguments | Mandat | Description |
---|---|---|---|
-h, --help |
| no | Shows this help. |
--verbose | <Level> | no | Enables the verbose output of logging messages. Possible arguments: Optional Argument: Default: ERROR |
-l, --logfile | <FILE> | no | Set the file to log the Console output into. |
--consoleEncoding | <CharsetName> | no | Set the encoding of the console output. If no argument is passed, a list of all supported charsets is printed. If no If you pass the charset name " Note: |
@ | <TXT_FILE> | no | Enables reading of additional arguments from text file. Arguments will be inserted in place of the original If file does not exist, then the option will be treated literally, and not removed. The file itself may contain additional |
-vmargs | <JVM_Options> | no | Pass arguments to Java virtual machine. Example: |
Troubleshooting
org.osgi.framework.BundleException
If you run DVACfgCmd as multiple instances without having built the configuration cache first, org.osgi.framework.BundleException
is thrown.
Solution:
Run only one DVACfgCmd instance. This builds the configuration cache at
<DvDevAdaptive>/configuration/org.eclipse.core.runtime
and<DvDevAdaptive>/configuration/org.eclipse.osgi
After that you can run DVACfgCmd as multiple instances.