Re-enable implicit :aot via :main.

Fixes #1289.
This commit is contained in:
Phil Hagelberg 2013-08-13 18:57:03 -07:00
parent 47c04773f4
commit 53d1828076

View file

@ -235,7 +235,7 @@ function in that namespace will be used as the main-class for executable jar.
With an argument, the jar will be built with an alternate main."
([project main]
(let [project (preprocess-project project main)]
(eval/prep (project/merge-profiles project [:provided]))
(eval/prep (add-main (project/merge-profiles project [:provided]) main))
(let [jar-file (get-jar-filename* project nil)]
(write-jar project jar-file (filespecs project))
(main/info "Created" (str jar-file))