Browse files

Add :java-opts as an alias for :jvm-opts

  • Loading branch information...
1 parent 5c59d28 commit 493adefe34b45edf470bf64bf832b687ab0f45fe @hyPiRion committed Dec 9, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −1 leiningen-core/src/leiningen/core/project.clj
  2. +1 −0 sample.project.clj
View
4 leiningen-core/src/leiningen/core/project.clj
@@ -161,7 +161,9 @@
:resource-paths empty-paths
:test-paths empty-paths}
(-> (merge defaults project)
- (dissoc :eval-in-leiningen :omit-default-repositories)
+ (assoc :jvm-opts (or (:jvm-opts project) (:java-opts project)
+ (:jvm-opts defaults)))
+ (dissoc :eval-in-leiningen :omit-default-repositories :java-opts)
(assoc :eval-in (or (:eval-in project)
(if (:eval-in-leiningen project)
:leiningen, :subprocess))
View
1 sample.project.clj
@@ -248,6 +248,7 @@
;; symbol values will be resolved to find a function to call.
"Grunge-level" my.plugin/calculate-grunginess}
;; You can set JVM-level options here.
+ ;; It is also possible to use :java-opts, which is an alias for :jvm-opts.
:jvm-opts ["-Xmx1g"]
;; Control the context in which your project code is evaluated.
;; Defaults to :subprocess, but can also be :leiningen (for plugins)

0 comments on commit 493adef

Please sign in to comment.