Re: ob-java compile only

2020-09-29 Thread John Herrlin
ian martins writes: > Thanks for explaining. That makes sense. > > I'm hesitant to add the compile-only header for a couple reasons. Generally > C-c C-c on a source block means "run this" but with compile-only it'll mean > "run this but don't run it." It's semantically inconsistent. Also I want

Re: ob-java compile only

2020-09-28 Thread ian martins
Thanks for explaining. That makes sense. I'm hesitant to add the compile-only header for a couple reasons. Generally C-c C-c on a source block means "run this" but with compile-only it'll mean "run this but don't run it." It's semantically inconsistent. Also I want to bring more feature parity to

Re: ob-java compile only

2020-09-28 Thread John Herrlin
Hey Ian, Thank you for the quick feedback! That workflow seems to work perfectly if it's Java all the way. Then it compiles all the related files. I am mostly working with the classes from Clojure. Here is an example: #+HEADER: :classname se/my_test_package/Hey #+HEADER: :compile-only t

Re: ob-java compile only

2020-09-27 Thread ian martins
Hi John, Thanks for the suggestion and patch. Is the reason for this so that you can have classes without needing dummy "main" methods? Did you consider using org-babel-tangle to generate the source files? This works for me: Steps: 1. put javatangle.org (below) on your local. 2. create "pkg" dir

ob-java compile only

2020-09-27 Thread John Herrlin
Hey Ian! Happy to see you as the maintainer of the ob-java! I would like to propose a feature to ob-java. The feature allows a source code block to write and compile only, without executing. Here is a common use case for me. Class without a entry point have an :compile-only header. #+HEADE