Deploying Groovy or JavaScript Scripts in Presto
Note: | JRuby is deprecated as a scripting language for mashups. You can, however, deploy JRuby scripts for mashups from previous versions. |
To use Groovy or JavaScript scripts that are defined in external files with the <script> statement in mashups, you must add them to a folder that is accessible to the Presto Server. Add the scripts to one of these locations:
Important: | Deploying additional resources, such as custom XPath classes, to an external configuration folder simplifies future deployments or Presto Server clusters. |
web-apps-home/presto/WEB-INF/classes for uncompressed scripts. This is the default location, but is not recommended as it complicates
Presto Server deployments. for uncompressed scripts.
If you add scripts to a JAR, add the JAR file to
web-apps-home/presto/WEB-INF/lib . This is the default location, but is not recommended as it complicates
Presto Server deployments.
Then, restart the Presto Server.