I\'ve installed Geany on my Linux Mint machine and I wrote some simple code. Just a small hello world to get started with the language.
Now I\'d like to run it and see w
I had similar issue in running a specific clojure script file out of a clojure project using lein
. Then I found a shortcut, thought of sharing the same.
In project.clj
file, you can toggle the clojure script file name ( which has main method of course). Following is the statement for this.
:main ^:skip-aot conv.newconv
; here conv is namespace and newconv is the file name
.
Note: I am new to clojure and I am not sure why '^:skip-aot` is used, I have not checked that.
Note: This methodology, does not require any plugin to be installed nor any jar file need to be generated. This only requires to change a name in project file.
Assumption: Your clojure project has multiple clojure files, each having main method. I am assuming this is created for testing purpose only. My solution will work for this specific scenario.