Got the idea. Thanks Steve.
On Mon, Feb 16, 2009 at 5:58 PM, Stephen C. Gilardi <squee...@mac.com>wrote: > > 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 -v >> >> Thanks. >> >> 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 > > -- Best Regards, Alin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---