by Nov 4, 2012

Is there a way to include one .xjs in another, to allow for modular code?


Emilian Bold over 10 years ago
Last we looked into this it wasn’t supported. We used a home-grown eval() over aqua.project.getAquaScript(String).read().

Sachin Prakash over 10 years ago
You cannot include one .xjs file in another.

However, to allow for modular code, you can use aqua.system.runScript() to execute another aquascript from within your existing .xjs file. Here’s the open api documentation for runScript:, java.lang.Object, boolean)