Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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