org.ceryle.wiki.plugin
Class Groovy

java.lang.Object
  extended by org.ceryle.wiki.plugin.Groovy
All Implemented Interfaces:
WikiPlugin

public class Groovy
extends Object
implements WikiPlugin

JSPWiki plugin to support both local and linked Groovy scripting on a wiki page.

Parameters

In the absence of an href parameter, the Groovy script content is contained within the plugin body. More docs TBD.

Example 1

The international standard that just prints "Hello World!" back to the wiki page.
    [{Groovy println("Hello World!") }]
  

Example 2

Opens the file 'Console.groovy' located in the scripts directory on the wiki server. Yes, this actually opens a Groovy console window.
    [{Groovy href='http://localhost:9099/wiki/scripts/Console.groovy' }]
  

Notes

Security Risks

There is a compile-time flag