#1 Rexx interpreter instance options

open
nobody
5
2009-10-19
2009-10-19
U. Zinngrebe
No

Interpreter Instance Options (chapter 9.1.2 ooRexx programming guide)
when invoking from Java, can they be set in the invocation or in a
resource file ? The options would allow useful customisation.

Conside a few Interpreter Instance Options by example.
Assume an adminsitrator with users scripting Application in Rexx.
Adminstrator wants to integrate them, with minimal disruption, into a Java
environment. Application invokes

java org.apache.bsf.Main -lang rexx -in UserScript.rex

In order to minimise user disruption, Administrator wants to set interpreter
Instance options, e.g. in the invocation or in a resource file.

Instance Option Used for
--------------------------------------------------------------------------------------------------------
INITIAL_ADDRESS_ENVIRONMENT   --  set to Application-Internal
EXTERNAL_CALL_PATH  --  search directory Application-UserScript
EXTERNAL_CALL_EXTENSIONS  --  Application uses *.pro instead of *.rex
LOAD_REQUIRED_LIBRARY --  BSF4Rexx BSF.CLS UserTools.dll
DIRECT_EXITS -- exit handler RXTRC to separate tracing from Java I/O ?
DIRECT_ENVIRONMENTS --  subcommand handler for CompanyEditor.exe

It could be responsibility of Application to prepare the environment and
to provide RexxOption of the RexxCreateInterpreter() API call.

Discussion

  • U. Zinngrebe
    U. Zinngrebe
    2009-10-19

    • summary: Rexx interpreter isntance options --> Rexx interpreter instance options