Class StaplerClosureScript

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Script
org.kohsuke.stapler.jelly.groovy.GroovyClosureScript
org.kohsuke.stapler.jelly.groovy.StaplerClosureScript
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class StaplerClosureScript extends GroovyClosureScript
Author:
Kohsuke Kawaguchi
  • Field Details

    • scriptURL

      protected URL scriptURL
      Where was this script loaded from?
  • Constructor Details

    • StaplerClosureScript

      public StaplerClosureScript()
  • Method Details

    • gettext

      public String gettext(String text)
      Looks up the resource bundle with the given key, and returns that string, or otherwise return 'text' as-is.
    • gettext

      public String gettext(String key, Object... args)
      Looks up the resource bundle with the given key, formats with arguments, then return that formatted string.