Skip to content

Commit

Permalink
returns empty string if no version can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed May 31, 2012
1 parent 3109ba3 commit bf8aa33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/clj/reply/version.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@

(def ^:dynamic *reply-pom-properties* "META-INF/maven/reply/reply/pom.properties")

(defn get-version []
(defn get-version
"attempts to get reply version from system properties or pom properties file, returns the empty string if neither works"
[]
(or (System/getProperty "reply.version")
(-> *reply-pom-properties*
map-from-property-filepath
(get "version"))
"version unknown"))
""))

0 comments on commit bf8aa33

Please sign in to comment.