Skip to content
Browse files

Update javac-options to be a vector.

  • Loading branch information...
1 parent c44d703 commit f7b908d571f7924bc104fad3e4eafa2c5b3e17ff @technomancy committed Apr 9, 2012
Showing with 8 additions and 0 deletions.
  1. +6 −0 src/leiningen/precate.clj
  2. +1 −0 test/leiningen/test/precate.clj
  3. +1 −0 test/p1.clj
View
6 src/leiningen/precate.clj
@@ -101,6 +101,11 @@
(update-in [:profiles :dev :resource-paths] (fnil conj []) path))
project)))
+(defn javac-options [project]
+ (if (:javac-options project)
+ (update-in project [:javac-options] (partial apply concat))
+ project))
+
(defn repositories-format [project]
(update-in project [:repositories] (partial into {})))
@@ -140,6 +145,7 @@
min-lein-version
extra-classpath-dirs
test-resources-path
+ javac-options
repositories-format
dependencies-format
dissoc-empty-keys
View
1 test/leiningen/test/precate.clj
@@ -14,6 +14,7 @@
['org.clojure/clojure "1.3.0"]
['something "0.0.1" :extension "pom" :classifier "sources"]]
:min-lein-version "2.0.0"
+ :javac-options [:destdir "classes/"]
:profiles {:dev {:dependencies [['robert/hooke "1.1.3"]
['something-dev "0.0.1" :extension "pom"]]
:resource-paths ["junk"]}
View
1 test/p1.clj
@@ -13,6 +13,7 @@
[slingshot "0.10.1"]
[cheshire "2.2.0"]
[something-pre "0.0.1" :type "pom"]]}
+ :javac-options {:destdir "classes/"}
:resource-paths ["stuff"]
:resources-path "whatever"
:source-path "src/clj"

0 comments on commit f7b908d

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