Sorry, I don’t understand what you mean. Do you mean in my invocation of the jar? What would that look like?
java -cp my.jar clojure.main -m my.ns
an advantage here is that you can also run a repl (leave out the -m arg) and any number of namespaces can have a runnable -main
(and you don't have a language feature that you use in prod but not during dev)
cool, I will want that, since each of my profiles have their own main. At work right now, but will try that out later. Thank you!
so is it that gen-class
means turn a namespace into a java cjass, and i don’t need that if i get the clojure.main class to instead load/invoke the namespace?
this also works by having gen-class / -main in multiple namespaces, but I think just using clojure.main is simpler over all
that's exactly it, cheers
🙏