Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.3
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
This patch allows clojure.main to accept an argument pointing to a namespace to look for a -main function in. This allows users to write -main functions that will work the same whether the code is AOT-compiled for use in an executable jar or just run from source.
Discussed on the mailing list: http://groups.google.com/group/clojure/browse_thread/thread/bcf3c7c0e002601e
Converted from http://www.assembla.com/spaces/clojure/tickets/315
Attachments:
0001-Add-support-for-running-main-namespaces-from-clojure.patch - https://www.assembla.com/spaces/clojure/documents/a4lY7et7Sr34T_eJe5dVir/download/a4lY7et7Sr34T_eJe5dVir
0002-Add-support-for-running-main-namespaces-from-clojure.patch - https://www.assembla.com/spaces/clojure/documents/azCC8mvcmr35JueJe5cbLA/download/azCC8mvcmr35JueJe5cbLA