![]() ![]() $dss->traceSetFileLevel($TraceLevel::ALL) $dss->traceSetConsoleLevel($TraceLevel::INFO) # Make the log and console file really verbose $dss->traceBegin("dssScriptLog.xml", "DefaultStylesheet.xsl") # Create a log file to log script execution With the main scripting object, the rest of the DSS APIs are available for use: # call the DSS class constructor(s) we need to create our scripting environment object # import module abstracting the DSS class details ![]() DSS_SCRIPTING.pm can then be leveraged in a Perl script by One way is to add the containing folder to the `PERL5LIB` environment variable. To ensure Perl can find the DSS_SCRIPTING package, you can add the file to you package path. Return DSS_SCRIPTING::com::ti::ccstudio::scripting::environment::ScriptingEnvironment->instance() # enable access to the DebugserverEnvironment Java class constructor * Installation of ().ĭepending on your version of CCS, you will need a 32-bit or 64-bit version of the JDK. The namespace is cached, and subsequent calls use the cached version. Is it efficient? Yes, the process of interrogating the Java classes for public methods occurs the first time you run your Java code. These classes and methods are available to the Perl program as if they had been written in Perl. Then Perl asks the Java classes what public methods have been defined. A Java compiler is launched and the Java code is compiled. With this we can access DSS Java classes in Perl. In the last several years, more language support has been added to the Inline module. It lets Perl developers write/leverage C code from within a Perl environment. The Perl Inline module has been around for many years. Giving programmers the ability to use DSS from Perl brings more customers on board. JavaScript is very rich and programmer-friendly, but Perl is probably still the most pervasive scripting language in use today.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |