Hi Thomas, can I do all those tasks over the couple of days - when I have more time? Should I just add the documentation before ob-groovy.el is accepted? For now, I've updated languages to include scala. http://orgmode.org/worg/org-contrib/babel/languages.html Kind Regards, Miro On Fri, Dec 27, 2013 at 1:08 AM, Thomas S. Dye wrote: > Aloha Miro, > > Thanks for your contribution to Org mode. > > Have you signed the FSF papers so that ob-groovy.el can be added to Org > mode? See: > http://orgmode.org/worg/org-contribute.html#sec-6 > > Contributions by authors who have not signed the FSF papers are > typically added to the contrib directory and are not distributed with > Emacs. > > Also, are you willing to draft documentation? For a link to a > documentation template, see: > http://orgmode.org/worg/org-contrib/babel/languages.html > > I was going to suggest that you use the Scala documentation as a guide, > but it doesn't exist! In fact, Scala doesn't appear in Worg's list of > languages supported by Babel. One of those days ... > > Thanks again for your contribution. > > All the best, > Tom > > Miro Bezjak writes: > > > Hi all, > > > > I would like to contribute org-babel functions for Groovy evaluation. I > > simply > > copy/pasted ob-scala.el and made appropriate changes. > > > > I'm attaching ob-groovy.el as a file. > > > > All 3 tests pass, although I haven't created `testing/test-ob-groovy.el` > - > > I'll > > look into that. > > > > --- testing last result ---------------- > > #+BEGIN_SRC groovy > > println "ignored" > > 1 + 2 > > #+END_SRC > > > > #+RESULTS: > > : 3 > > ---------------------------------------- > > > > --- testing results output -------------- > > #+BEGIN_SRC groovy :results output > > println '1' > > println '2' > > println 1 + 2 > > #+END_SRC > > > > #+RESULTS: > > =1 > > 2 > > 3 > > ---------------------------------------- > > > > --- testing table ---------------------- > > #+BEGIN_SRC groovy :results verbatim raw > > """ > > | 1 | 2 > > |-- > > | a | b > > """.trim() > > #+END_SRC > > > > #+RESULTS: > > | 1 | 2 | > > |---+---| > > | a | b | > > ---------------------------------------- > > > > > > Kind Regards, > > Miro Bezjak > > Hi all, > > > > I would like to contribute org-babel functions for Groovy evaluation. > > I simply > > copy/pasted ob-scala.el and made appropriate changes. > > > > I'm attaching ob-groovy.el as a file. > > > > All 3 tests pass, although I haven't created > > `testing/test-ob-groovy.el` - I'll > > look into that. > > > > --- testing last result ---------------- > > #+BEGIN_SRC groovy > > println "ignored" > > 1 + 2 > > #+END_SRC > > > > #+RESULTS: > > : 3 > > ---------------------------------------- > > > > --- testing results output -------------- > > #+BEGIN_SRC groovy :results output > > println '1' > > println '2' > > println 1 + 2 > > #+END_SRC > > > > #+RESULTS: > > =1 > > 2 > > 3 > > ---------------------------------------- > > > > --- testing table ---------------------- > > #+BEGIN_SRC groovy :results verbatim raw > > """ > > | 1 | 2 > > |-- > > | a | b > > """.trim() > > #+END_SRC > > > > #+RESULTS: > > | 1 | 2 | > > |---+---| > > | a | b | > > ---------------------------------------- > > > > Kind Regards, > > Miro Bezjak > > > > > > -- > Thomas S. Dye > http://www.tsdye.com >