X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=docs%2F5_Component_Documentation%2F3_rba.md;fp=docs%2F5_Component_Documentation%2F3_rba.md;h=9661923b747a3d434df8ed89f576dfaa33d2615f;hb=63c014544afd43443066f88e213da1bdd02405df;hp=0cfe88eef48eef166d44437d96034d220b957fab;hpb=a6f9a39283ff9b87f4d4257656c743dd682ae114;p=AGL%2Fdocumentation.git 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 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)