This arose in another context and I haven’t seen a response from the Quantrix side, so surfacing it here to make visible.
The current environment for scripting appears to use the default Java Security Policy i.e. scripts are treated as though they were applets in a browser. This means scripts have no access to the local machine i.e. they can’t load or save files, etc.
Is this intended to be the case? If so it would be highly desirable if it were possible to set an alternative security policy as an option. This would probably require a user warning/confirmation to be issued when loading such a script – similar to loading VBA scripts in Excel.
External JARs can be imported as of 4.0.42. For security reasons, we decided to use a single blessed location for external libraries rather than making the entire class path available to scripting. To install a library for use with scripting, follow these steps:
1) Open the folder on your hard drive where Quantrix is installed, and within that folder create a subfolder called “ScriptingLibs”.
2) Place any JARs you need to use within the ScriptingLibs folder.
3) Restart Quantrix if necessary. In your script, import the classes you would like to use as you would in normal Groovy or Java source.
On a Mac I have tried to create a folder named ScriptingLibs under:
It doesn’t seem to access jar libraries placed in such folder. Any hint on the location of ScriptingLibs?
Thanks in advance