This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is it possible to pass *script* parameters to eclipse com.ti.ccstudio.apps.runScript?

Other Parts Discussed in Thread: CCSTUDIO

The <ccs root dir>/ccsv5/ccs_base/scripting/bin/dss.sh script is broken and therefore loadti can not be run on the latest CCSv5 using a linux host.

I could not find a way to pass loadti params via com.ti.ccstudio.apps.runScript

com.ti.ccstudio.apps.runScript does take an option called -dss.rhinoArgs but the arguments passed on it are consumed by rhino instead of being passed to loadti script.

@ ../../../DebugServer/../../eclipse/eclipse -nosplash -application com.ti.ccstudio.apps.runScript
flxInitLoad: client has not been protected.
flxInitLoad: client has not been protected.
Usage:
    eclipse -noSplash -data "<workspace_dir>"
        -application com.ti.ccstudio.apps.runScript
        [<options>]

where options include:
    -dss.script <file>
        Absolute or relative path to the script file (optional).
        Relative paths will be resolved based on the current working-directory.
    
    -dss.rhinoArgs "<args>"
        Additional arguments to be passed to the Rhino interpreter (optional).
        (use backslash '\' to escape all double-quotes in <args>).
    
    -dss.debug
        Launch the Rhino Debugger to step through the script (optional).
        Defaults to 'false'.

    -ccs.args <file>
        File containing any extra arguments (optional).
        
    -ccs.help
        Print this help message.

If there is no way to pass paramaters then I suggest changing dss.sh to call rhino the legacy way (i.e. java -DXPCOM.RUNTIME=$DEBUGSERVER_ROOT/linux org.mozilla.javascript.tools.shell.Main)

Thanks,
Carlos