emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* java source block snippets
       [not found] <1333119044.599677.1545292945934.ref@mail.yahoo.com>
@ 2018-12-20  8:02 ` Brad Knotwell
  0 siblings, 0 replies; only message in thread
From: Brad Knotwell @ 2018-12-20  8:02 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

Hello all--
I was trying to do a java source block and I got hello world working trivially.  I then tried to move forward but I can't figure out how to get a java source block to accept input from org.
The following worked fine in C and allowed me to test the performance of a sha1 hash implementation:  
#+BEGIN_SRC C :var indata=cleandata  :exports both :results output :tangle t.c :includes '("<stdio.h>" "<string.h>" "<unistd.h>" "<sys/time.h>" "<openssl/ssl.h>" "<openssl/sha.h>") :libs -L /usr/local/Cellar/openssl/1.0.2q/lib -lcrypto
while I know the compilation method's nowhere near the same, I would've expected something like the following to work: 
#+BEGIN_SRC java :results output :export both :var indata=cleandata :var x="hi" :tangle t.java
Looking at the tangled file, it's clear the :var header arguments are ignored.  Since I have the data in an appendix, I can write some code to put cleandata in a file and read it directly but I was hoping there was a more consistent babel way to handle it.
Thx.
--Brad

[-- Attachment #2: Type: text/html, Size: 1766 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-20  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1333119044.599677.1545292945934.ref@mail.yahoo.com>
2018-12-20  8:02 ` java source block snippets Brad Knotwell

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).