File: use-java-target-source-from-java-common.patch

package info (click to toggle)
clj-yaml-clojure 0.7.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 192 kB
  • sloc: java: 43; makefile: 22; sh: 18
file content (15 lines) | stat: -rw-r--r-- 607 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Use -target and -source values from java-common
Author: Jérôme Charaoui <jerome@riseup.net>
Forwarded: not-needed
Bug-Debian: #1052576
--- a/project.clj
+++ b/project.clj
@@ -9,7 +9,7 @@
   :global-vars {*warn-on-reflection* true}
   :source-paths ["src/clojure"]
   :java-source-paths ["src/java"]
-  :javac-options ["-target" "1.7" "-source" "1.7" "-Xlint:-options"]
+  :javac-options ["-target" ~(System/getenv, "JAVA_TARGET_VERSION") "-source" ~(System/getenv, "JAVA_SOURCE_VERSION") "-Xlint:-options"]
   :dependencies
   [[org.yaml/snakeyaml "2.x"]
    [org.flatland/ordered "debian"]]