On Tue, Sep 28, 2010 at 7:40 PM, Eric Schulte <schulte.e...@gmail.com> wrote: > Currently I use the :jvm-opts keyword in project.clj, however it would > be nice to be able to specify different argument when using different > tools as mentioned in the thread above, or to be able to set different > values (e.g. maximum heap sizes) depending on resources of the current > computer. > > Is there an accepted way to handle these situations? If not would this > make a good item for future lein development?
You can use unquote to embed arbitrary evaluations in your project.clj: (defproject foo "1.0.0" :dependencies [[clojure "1.2.0"]] :jvm-opts [~(str "-Xmx" (if (= "64" (System/getProperty "sun.arch.data.model")) "2g" "1g"))]) Untested, but you get the idea. -Phil -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en