Skip to content

Instantly share code, notes, and snippets.

@bhenry
Created September 8, 2011 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhenry/cd2293d656553faccf84 to your computer and use it in GitHub Desktop.
Save bhenry/cd2293d656553faccf84 to your computer and use it in GitHub Desktop.
(defmacro get-version []
(System/getProperty "leinprojectname.version"))
(def version (get-version))
@alandipert
Copy link

You might also AOT:

(def version #=(java.lang.System/getProperty "leinprojectname.version"))

#= does read-time evaluation. Haven't tested it, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment