• Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:


      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/ (META-INF/maven/.../ 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/ 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").


        Issue Links


          Andrei Savu created issue -
          Andrei Savu made changes -
          Field Original Value New Value
          Link This issue requires WHIRR-456 [ WHIRR-456 ]
          Andrei Savu made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Andrei Savu [ savu.andrei ]
          Fix Version/s 0.7.1 [ 12319462 ]
          Fix Version/s 0.8.0 [ 12318880 ]
          Resolution Duplicate [ 3 ]
          Andrei Savu made changes -
          Fix Version/s 0.8.0 [ 12318880 ]
          Fix Version/s 0.7.1 [ 12319462 ]
          Tom White made changes -
          Fix Version/s 0.8.0 [ 12321649 ]
          Fix Version/s 0.8.0-alpha.1 [ 12318880 ]


            • Assignee:
              Andrei Savu
              Andrei Savu
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: