Open retrogradeorbit opened 9 years ago
When running the stand alone executable on a Unix system, there seems to be no way to access the executable's name.
(defn -main [& args] (println (System/getenv "_")))
$ lein run arg1 arg2 /usr/bin/java
$ target/bin arg1 arg2 nil
What I really want here is "target/bin", but I'm not sure if that is right. Maybe "/usr/bin/java" is more correct. Maybe the "target/bin" can be passed in to java somehow? Your thoughts?
I do not know what this means.
sorry. I clicked the button early. You are too fast!
Hehe, no worries.
When running the stand alone executable on a Unix system, there seems to be no way to access the executable's name.
$ lein run arg1 arg2 /usr/bin/java
$ target/bin arg1 arg2 nil
What I really want here is "target/bin", but I'm not sure if that is right. Maybe "/usr/bin/java" is more correct. Maybe the "target/bin" can be passed in to java somehow? Your thoughts?