A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
11
Task/Introspection/Clojure/introspection.clj
Normal file
11
Task/Introspection/Clojure/introspection.clj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
; check Java version
|
||||
(let [version (Double/parseDouble (re-find #"\d*\.\d*" (System/getProperty "java.version")))]
|
||||
(if (>= version 1.5)
|
||||
(println "Version ok")
|
||||
(throw (Error. "Bad version"))))
|
||||
|
||||
; check Clojure version
|
||||
(let [version (Double/parseDouble (re-find #"\d*\.\d*" (clojure-version)))]
|
||||
(if (>= version 1.0)
|
||||
(println "Version ok")
|
||||
(throw (Error. "Bad version"))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue