Fork me on GitHub
#beginners
<
2015-08-07
>
scriptor15:08:16

if I have a gen-class inside a file

scriptor15:08:24

and then compile the project with lein uberjar

scriptor15:08:10

and then inspect the resulting jar with jar tf, I should be able to see myproject.myfile.class, right?

Alex Miller (Clojure team)15:08:59

yes, although it would be at myproject/myfile.class assuming it's clojure namespace is myproject.myfile

scriptor15:08:33

alexmiller: all I find is the .clj file itself, is there anything I need besides a (:gen-class) in the ns declaration?

Alex Miller (Clojure team)15:08:04

oh, you might need to specify that ns in :aot in your project.clj

Alex Miller (Clojure team)15:08:12

to cause it to be compiled

scriptor15:08:50

so adding a :aot [myproject.myfile] in project.clj?

scriptor15:08:25

thanks, got that to work! Now to see if I can feed this into storm

scriptor17:08:15

works great, thanks for the help alexmiller!