Capital Embedded Integrator AR Classic ships with an executable that can run scripts against workspaces with AUTOSAR projects, supporting JavaScript through Rhino Javascript runtime. In the 2406 release we have updated the Rhino JavaScript runtime to version 1.7.14, which includes many enhancements and bugfixes. Minor modifications are necessary to adapt your existing scripts.
Integration Impact:
Previously, iteration of the scripting code looked like this:
importPackage(Packages.com.mentor.vsa.ecuc.ecg.scriptingapi); importPackage(Packages.com.mentor.vsx.model.handling.utils);
ECG(armodel.getModel());
... |
The new iteration of the scripting code, should be similar to the following:
with(new JavaImporter()) {
importPackage(Packages.com.mentor.vsa.ecuc.ecg.scriptingapi); importPackage(Packages.com.mentor.vsx.model.handling.utils);
ECG(armodel.getModel());
... } |
Please refer to example scripts in CLIscripts folder of your installation directory.