John Herrlin <jherr...@gmail.com> writes: > I would like to combine imports from header-args with imports from a > source block. > > Here is an example: > > * RxJava > :PROPERTIES: > :header-args: :dir src :results output code > :header-args:java: :cmdline -classpath ./rxjava-1.3.8.jar:src:. :cmpflag > -classpath ./rxjava-1.3.8.jar:src:. :imports rx.Observable rx.Subscriber > :END: > > #+BEGIN_SRC java > import static rx.Observable.empty; > import static rx.Observable.just; > import static rx.Observable.range; > > Observable > .range(5, 5) > .flatMap(x -> just(x * 2)) > .flatMap(x -> (x != 10) ? just(x) : empty()) > .subscribe(System.out::println); > #+END_SRC
> What do you think about it? I can’t give an informed opinion about the patch, but the example looks great! I did not know that Java support in org-babel is that good. Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken
signature.asc
Description: PGP signature