[
https://issues.apache.org/jira/browse/WHIRR-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrei Savu resolved WHIRR-471.
-------------------------------
Resolution: Duplicate
Fix Version/s: (was: 0.8.0)
0.7.1
Assignee: Andrei Savu
Fixed in WHIRR-456 during the upgrade to 1.3.0.
> Display jclouds version
> -----------------------
>
> Key: WHIRR-471
> URL: https://issues.apache.org/jira/browse/WHIRR-471
> Project: Whirr
> Issue Type: Improvement
> Reporter: Andrei Savu
> Assignee: Andrei Savu
> Fix For: 0.7.1
>
>
> It would be useful to also display the jclouds version on "bin/whirr
> version".
> Here is the relevant message from Andrew Phillips on jclouds-dev@:
> 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!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira