On Feb 16, 2009, at 3:39 AM, Alin Popa wrote:
Hi, There is a way to display the current clojure's version ?Something like java -cp $CLOJURE_JAR:$CLOJURE_CONTRIB_JAR clojure.main -vThanks. Alin
I think if a Clojure version identifier existed, that would be a good way to print it. I support an issue to request that when version info exists, it be made available through a "-v" or "--version" argument on clojure.main.
Currently, there is no clean way to provide a Clojure version number. Some ways based on SVN revision have been proposed, but my impression is that there hasn't been consensus that it would be something that could be ensured to be correct automatically enough to be useful.
Sometime there will be Clojure releases with version numbers. At that time, it seems most natural to me for version info to be available via a global variable like "*clojure-version*" whose value might be a small map like {:release true :major 1 :minor 0 :revision 0 :date "20090101T0000"} for release builds and {:release false :date 20090204T093247} for unofficial builds.
No such mechanism is yet available. --Steve
smime.p7s
Description: S/MIME cryptographic signature