You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by Andrei Savu <sa...@gmail.com> on 2012/01/08 13:03:01 UTC

Re: Using JcloudsVersion

I think we should also display the jclouds version in bin/whirr version
On Jan 8, 2012 4:44 AM, "Andrew Phillips" <ap...@qrmedia.com> wrote:

> Issue 802 [1] added a JcloudsVersion class to jclouds/core which can be
> used to get version information about jclouds at runtime. It's designed to
> be used as follows:
>
> A. From outside jclouds:
> ------------------------
> Obtain a JcloudsVersion instance using JcloudsVersion.get(). Version
> information is read from META-INF/jclouds-version.**properties
> (META-INF/maven/.../pom.**properties would have been nice but isn't
> available from an IDE) which is included in the jclouds core JAR.
>
> If you need to simulate a different JcloudsVersion for testing purposes,
> you can place an overriding META-INF/jclouds-version.**properties file in
> the classpath (e.g. src/test/resources) with the desired version.
>
> B. From inside jclouds:
> -----------------------
> Obtain a JcloudsVersion instance using Guice, binding it to
> JcloudsVersion.get(). When testing code that uses a JcloudsVersion,
> override this binding with an appropriate instance created with new
> JcloudsVersion("my-test-**version").
>
> Thanks!
>
> ap
>
> --
> You received this message because you are subscribed to the Google Groups
> "jclouds-dev" group.
> To post to this group, send email to jclouds-dev@googlegroups.com.
> To unsubscribe from this group, send email to jclouds-dev+unsubscribe@**
> googlegroups.com <jc...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/jclouds-dev?hl=en <http://groups.google.com/group/jclouds-dev?hl=en>
> .
>
>