From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: [babel] - Support for Groovy Date: Fri, 19 Mar 2010 12:46:33 -0500 Message-ID: <211769421003191046x18b4ae74u888c59053462b72c@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1037733900==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsgHP-0000wP-0O for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 13:46:39 -0400 Received: from [140.186.70.92] (port=48515 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsgHN-0000uB-J7 for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 13:46:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NsgHM-0006u0-35 for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 13:46:37 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:51229) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsgHL-0006tX-VG for emacs-orgmode@gnu.org; Fri, 19 Mar 2010 13:46:36 -0400 Received: by gyb13 with SMTP id 13so3059463gyb.0 for ; Fri, 19 Mar 2010 10:46:34 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1037733900== Content-Type: multipart/alternative; boundary=000e0cd705d297978f04822aed84 --000e0cd705d297978f04822aed84 Content-Type: text/plain; charset=ISO-8859-1 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 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 --000e0cd705d297978f04822aed84 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 decid= ed 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
=A0=A0 println "bar"; #+end_src

However, the program doesn't run -- all I get is the &= quot;usage" output from Groovy:
=A0 (Ex: usage:=A0 groovy <file&= gt; 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 any= one help?=A0 I have the source code here:

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

Thanks,
--Nate
--000e0cd705d297978f04822aed84-- --===============1037733900== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1037733900==--