Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the Groovy file contains Groovy functions, you can recall the functions by using ‘eval'eval()' methods.

Code Block
languagetext
$groovy.execute('filename.groovy')
$groovy.eval("new groovy().functionname()")

...

Code Block
languagetext
"Class name is " + $c.name"

The template code

Code Block
languagetext
#foreach ($c in $Class)
$groovy.execute("filename.groovy", 'c', $c)
#end

...