Created
January 23, 2017 21:22
-
-
Save noisesmith/001823edf4e992f115b878768f50d8b3 to your computer and use it in GitHub Desktop.
def is run even with aot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
justin@borbetomagus: /tmp/aot-test$ cat src/aot_test/core.clj | |
(ns aot-test.core | |
(:gen-class)) | |
(def loaded (java.util.Date.)) | |
(defn -main | |
"I don't do a whole lot ... yet." | |
[& args] | |
(println "loaded at" loaded)) | |
justin@borbetomagus: /tmp/aot-test$ lein run | |
loaded at #inst "2017-01-23T21:21:40.941-00:00" | |
justin@borbetomagus: /tmp/aot-test$ lein uberjar | |
Compiling aot-test.core | |
Created /private/tmp/aot-test/target/uberjar/aot-test-0.1.0-SNAPSHOT.jar | |
Created /private/tmp/aot-test/target/uberjar/aot-test-0.1.0-SNAPSHOT-standalone.jar | |
justin@borbetomagus: /tmp/aot-test$ java -jar target/uberjar/ | |
aot-test-0.1.0-SNAPSHOT-standalone.jar | |
aot-test-0.1.0-SNAPSHOT.jar | |
classes/ | |
stale/ | |
justin@borbetomagus: /tmp/aot-test$ java -jar target/uberjar/aot-test-0.1.0-SNAPSHOT-standalone.jar | |
loaded at #inst "2017-01-23T21:21:59.651-00:00" | |
justin@borbetomagus: /tmp/aot-test$ java -jar target/uberjar/aot-test-0.1.0-SNAPSHOT-standalone.jar | |
loaded at #inst "2017-01-23T21:22:02.096-00:00" | |
justin@borbetomagus: /tmp/aot-test$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment