Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/SMILA Versioning"

(SMILA Versioning - initial version)
 
m
Line 1: Line 1:
 
= SMILA Versioning =
 
= SMILA Versioning =
  
The current SMILA version which is displayed via REST API. The version is delivered by a ''VersionManager'' service via registered ''VersionProvider'' service(s).
+
The current SMILA version is displayed via REST API. The version is delivered by a ''VersionManager'' service via registered ''VersionProvider'' service(s).
  
 
== Getting version via REST API ==  
 
== Getting version via REST API ==  
Line 8: Line 8:
 
<pre>
 
<pre>
 
   version: {
 
   version: {
     smila: "1.1.0.TODO"
+
     smila: "1.1.0.2885"
 
   },
 
   },
 
   ...
 
   ...
Line 15: Line 15:
 
The version is a compound of: ''<version number>.<SVN revision>''
 
The version is a compound of: ''<version number>.<SVN revision>''
 
* ''<version number>'' (e.g. "1.1.0"): comes from <tt>configuration/org.eclipse.smila.versions/version.properties</tt>
 
* ''<version number>'' (e.g. "1.1.0"): comes from <tt>configuration/org.eclipse.smila.versions/version.properties</tt>
* ''<SVN revision>''(e.g. '''TODO'''): current SVN revision at time of build
+
* ''<SVN revision>''(e.g. "2885"): current SVN revision at time of build
  
  

Revision as of 05:36, 29 June 2012

SMILA Versioning

The current SMILA version is displayed via REST API. The version is delivered by a VersionManager service via registered VersionProvider service(s).

Getting version via REST API

After starting SMILA, the main site of the REST API will show you the SMILA version:

  version: {
    smila: "1.1.0.2885"
  },
  ...

The version is a compound of: <version number>.<SVN revision>

  • <version number> (e.g. "1.1.0"): comes from configuration/org.eclipse.smila.versions/version.properties
  • <SVN revision>(e.g. "2885"): current SVN revision at time of build


Bundle org.eclipse.smila.versions

The JavaDoc for the bundle can be found here.

org.eclipse.smila.versions.VersionProvider

Services implementing this interface (and providing it via OSGI DS) are able to deliver their own version.

org.eclipse.smila.versions.VersionManager

This service provides an API for dynamically registering VersionProvider services.

org.eclipse.smila.versions.SMILAVersionProvider

The VersionProvider implementation that reads the SMILA version from the configuration/org.eclipse.smila.versions/version.properties

Back to the top