aboutsummaryrefslogtreecommitdiffstats
path: root/docs/5_Component_Documentation
diff options
context:
space:
mode:
authorAnusha Gugale <external.agogale@jp.adit-jv.com>2021-09-27 15:09:31 +0530
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2021-10-12 13:16:26 +0000
commit63c014544afd43443066f88e213da1bdd02405df (patch)
treef5ca482ca90f41899e62dd3bf3b7e7b3769c83bc /docs/5_Component_Documentation
parenta6f9a39283ff9b87f4d4257656c743dd682ae114 (diff)
RBA docs: Update step to generate .json from .rba file
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>
Diffstat (limited to 'docs/5_Component_Documentation')
-rw-r--r--docs/5_Component_Documentation/3_rba.md22
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/5_Component_Documentation/3_rba.md b/docs/5_Component_Documentation/3_rba.md
index 0cfe88e..9661923 100644
--- a/docs/5_Component_Documentation/3_rba.md
+++ b/docs/5_Component_Documentation/3_rba.md
@@ -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)