I am trying to pass an argument to a groovy babel block but I'm not sure it accepts arguments? The documentation says that it is language-specific but I didn't find any documentation for ob-groovy.
For example, I want to try to feed one section of my document into the groovy block:
#+NAME:current_paths
path1
path2
path3
** Groovy Processing
#+BEGIN_SRC groovy :var paths=current_paths :results output :cache yes
paths.each {
println "PATH: $it"
}
#+END_SRC
But I get:
Caught: groovy.lang.MissingPropertyException:
No such property: paths for class: groovy-6160mqV
at groovy-6160mqV.run(groovy-6160mqV:2)
Does anyone know if groovy babel support includes arguments? Or maybe I'm doing this wrong?