RBA docs: Update step to generate .json from .rba file 72/26672/2
authorAnusha Gugale <external.agogale@jp.adit-jv.com>
Mon, 27 Sep 2021 09:39:31 +0000 (15:09 +0530)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 12 Oct 2021 13:16:26 +0000 (13:16 +0000)
Signed-off-by: Anusha Gugale <external.agogale@jp.adit-jv.com>
Change-Id: Id8a966014b58d9369f50bca7144c40f69b79939f
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/26672
Reviewed-by: Naohiro Nishiguchi <nnishiguchi@jp.adit-jv.com>
Reviewed-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
docs/5_Component_Documentation/3_rba.md

index 0cfe88e..9661923 100644 (file)
@@ -1182,6 +1182,26 @@ Stereotype<ViewContent> display_warnning (name,allocatable,priority) @BEGIN@
         height: 100
     }
     State NORMAL { piority: @{priority} }
-
 @END@
 ```
+
+## Generate .json from .rba file
+Download [prebuilt package](https://git.automotivelinux.org/staging/rba-tool/tree/tool_bin)
+
+- If some errors occur, RBAModel.json is not generated (exit code 1).
+````
+java -cp ./ -jar JSONGenerator.jar "[path to model directory]" "[path to output directory]"
+````
+
+Example:
+
+- RBAModel.json file is generated in directory same as JSONGenerator.jar
+````
+java -cp ./ -jar JSONGenerator.jar "./RBAModel.rba"
+````
+
+- RBAModel.json file is generated in ~/ directory
+````
+java -cp ./ -jar JSONGenerator.jar "./RBAModel.rba" "~/"
+````
+Note: For the reference .rba file is given under the path [prebuilt package/sample_model](https://git.automotivelinux.org/staging/rba-tool/tree/tool_bin/sample_model)