Skip to content

Commit

Permalink
Set $PROJECT.version as system property. Fixes technomancy#156.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jan 14, 2011
1 parent 3426e03 commit 48109fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Leiningen NEWS -- history of user-visible changes

= 1.5.0 / ???

* Add system property for $PROJECT.version.

* Add deploy task.

* Reload tests in interactive mode.
Expand Down
2 changes: 2 additions & 0 deletions src/leiningen/compile.clj
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@
(find-native-lib-path project))]
(.setProject java lancet/ant-project)
(add-system-property java :clojure.compile.path (:compile-path project))
(add-system-property java (format "%s.version" (:name project))
(:version project))
(when (:debug project)
(add-system-property java :clojure.debug true))
(when native-path
Expand Down

0 comments on commit 48109fa

Please sign in to comment.