Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 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