Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update javac-options to be a vector.

  • Loading branch information...
commit f7b908d571f7924bc104fad3e4eafa2c5b3e17ff 1 parent c44d703
Phil Hagelberg authored April 09, 2012
6  src/leiningen/precate.clj
@@ -101,6 +101,11 @@
101 101
           (update-in [:profiles :dev :resource-paths] (fnil conj []) path))
102 102
       project)))
103 103
 
  104
+(defn javac-options [project]
  105
+  (if (:javac-options project)
  106
+    (update-in project [:javac-options] (partial apply concat))
  107
+    project))
  108
+
104 109
 (defn repositories-format [project]
105 110
   (update-in project [:repositories] (partial into {})))
106 111
 
@@ -140,6 +145,7 @@
140 145
       min-lein-version
141 146
       extra-classpath-dirs
142 147
       test-resources-path
  148
+      javac-options
143 149
       repositories-format
144 150
       dependencies-format
145 151
       dissoc-empty-keys
1  test/leiningen/test/precate.clj
@@ -14,6 +14,7 @@
14 14
                            ['org.clojure/clojure "1.3.0"]
15 15
                            ['something "0.0.1" :extension "pom" :classifier "sources"]]
16 16
             :min-lein-version "2.0.0"
  17
+            :javac-options [:destdir "classes/"]
17 18
             :profiles {:dev {:dependencies [['robert/hooke "1.1.3"]
18 19
                                             ['something-dev "0.0.1" :extension "pom"]]
19 20
                              :resource-paths ["junk"]}
1  test/p1.clj
@@ -13,6 +13,7 @@
13 13
                         [slingshot "0.10.1"]
14 14
                         [cheshire "2.2.0"]
15 15
                         [something-pre "0.0.1" :type "pom"]]}
  16
+  :javac-options {:destdir "classes/"}
16 17
   :resource-paths ["stuff"]
17 18
   :resources-path "whatever"
18 19
   :source-path "src/clj"

0 notes on commit f7b908d

Please sign in to comment.
Something went wrong with that request. Please try again.