emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] - Support for Groovy
@ 2010-03-19 17:46 Nathan Neff
  2010-03-19 18:50 ` Dan Davison
  0 siblings, 1 reply; 4+ messages in thread
From: Nathan Neff @ 2010-03-19 17:46 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]

Hello,

I'm trying to write an org-babel-groovy.el file, and have read through the
org-babel-template.el and org-babel-template.org files.

Eventually, I decided to just copy the org-babel-perl.el file to
org-babel-groovy and
replace 'perl' with 'groovy' where appropriate :-/

I'm able to get Groovy to run from an org-babel file with this code:

#+begin_src groovy :results output
   println "bar";
#+end_src

However, the program doesn't run -- all I get is the "usage" output from
Groovy:
  (Ex: usage:  groovy <file> blah blah blah)

I suspect that this is because I don't have a major-mode for Groovy
installed.

I'd really just like for a Groovy script to be run from org-babel, and for
the output
to be inserted into an org-babel file.

Can anyone help?  I have the source code here:

http://github.com/NathanNeff/org-mode/blob/nate/contrib/babel/lisp/langs/org-babel-groovy.el

Thanks,
--Nate

[-- Attachment #1.2: Type: text/html, Size: 1210 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-19 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-19 17:46 [babel] - Support for Groovy Nathan Neff
2010-03-19 18:50 ` Dan Davison
2010-03-19 18:55   ` Eric S Fraga
2010-03-19 19:29     ` Dan Davison

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).