Hello.
Is it possible to access workspace variables (such as PROJECT_ROOT) from within the javacript DSS? I would like to avoid hard-coding paths.
Thanks,
-Sam
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.
Hello.
Is it possible to access workspace variables (such as PROJECT_ROOT) from within the javacript DSS? I would like to avoid hard-coding paths.
Thanks,
-Sam
Hi Sam,
I don't think this is possible since DSS operates assuming you have a target configuration and some already compiled .out file(s). I don't think you can re-compile or otherwise access the source project from DSS.
If you want project/build environment info, maybe (and this is just speculation) you could investigate the options for calling various programs in the build chain from the command line: maybe one of these can return the project/build environment info? Otherwise you might be able to use an XML parser to extract info from the project or workspace file(s)?
HI Sam,
Devin is correct. DSS is separate from the Eclipse environment and does not have native access to built-in Eclipse variables like PROJECT_ROOT. You can access system environment variables from DSS easily enough, but not Eclipse specific variables
Thanks
ki