Capital™ Embedded Command Line Scripting: Update Rhino JavaScript runtime

2024-07-19T13:45:55.000+0100
Capital Embedded Integrator AR Classic

Summary

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.


Details

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. 

KB Article ID# KB000133347_EN_US

Contents

SummaryDetails

Associated Components

Capital Embedded Integrator AR Classic