On Apr 22, 12:41 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote:
> 2009/4/22 Rich Hickey <richhic...@gmail.com>:
>
> > [...]
> > {:major 1, :minor 0, :incremental 0, :qualifier :rc1 :interim true}
>
> > for interim versions and
>
> > {:major 1, :minor 0, :incremental 0}
>
> > for releases. :interim tracks the SNAPSHOT segment of the version
> > string.
> > [...]
> > I don't mind the build producing clojure-1.0.0.jar etc, but it doesn't
> > now. The master build is Ant. Where is the best place to put the
> > version info so it can be leveraged by Ant, Maven and the clojure core
> > runtime in order to produce *clojure-version* ?
>
> Here a patch that allows to initialize from ant and from a file
> version.properties the values in *clojure-version*.
>
> The patch only addresses the problematic of having a single place for
> version attributes.
> Having the ant build also use these properties for creating correctly
> numbered jars is not part of the patch.
>
> Note that I had to create a new file, src/clj/clojure/core_version.clj
> , which is created by ant as a combination of template file
> core_version-template.clj and the properties from version.properties.
>
> You'll see that if you don't like the names of the keys in
> version.properties, build.xml is the single place where to change them
> (apart from version.properties, of course).
> Also, if you don't like the name version.properties (e.g. if it should
> be named project.properties or whatever for easing maven users), then
> you just have to change its occurence in build.xml too.
>
> If you like it, it can file an issue to google code and attach the patch,
>

Thanks!

I can't say I love the idea of generating a file during build. What
about clojure.jar containing a properties file it reads at load time?
Could the same file be read by the various builds?

Rich

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to