Skip to content

Commit

Permalink
Merge pull request #881 from hyPiRion/alias-java-opts-to-jvm-opts
Browse files Browse the repository at this point in the history
Add :java-opts as an alias for :jvm-opts
  • Loading branch information
technomancy committed Dec 10, 2012
2 parents 5c59d28 + 493adef commit 2b00468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leiningen-core/src/leiningen/core/project.clj
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions sample.project.clj
Expand Up @@ -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)
Expand Down

0 comments on commit 2b00468

Please sign in to comment.