Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319290 - Nicer reporting of profile, plugin versions please
Summary: Nicer reporting of profile, plugin versions please
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Headless (show other bugs)
Version: 0.5   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal with 2 votes (vote)
Target Milestone: 0.5M0   Edit
Assignee: Daniel Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 13:18 EDT by Steve Jerman CLA
Modified: 2010-09-23 14:13 EDT (History)
3 users (show)

See Also:


Attachments
patch_319290 (1.22 KB, patch)
2010-09-23 11:17 EDT, Daniel Johnson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Jerman CLA 2010-07-08 13:18:04 EDT
Hi,

At present when doing a headless build I get this output:

Tigerstripe Workbench Base Plug-in (Incubation) (v0.5.0.201007010319)
Active Profile: XMP-IM Model Profile 1.47
Imported xmp-im-connectivity-module into workspace.
Generation project: /EclipseWorkspaces/new-build-proper/xmp-im-connectivity-module
[Project: xmp-im-connectivity-module, Plugin: xmp-validation(1.0.0), Facet: default]
Generation Successful.

[Project: xmp-im-connectivity-module, Plugin: XMP Hibernate Mapping Generator(1.0.0), Facet: default]
Generation Successful.

[Project: xmp-im-connectivity-module, Plugin: xmp-pojo-generator(1.0.0), Facet: default]
Generation Successful.

[Project: xmp-im-connectivity-module, Plugin: xmp-palIce-metadata(1.0.0), Facet: default]
Generation Successful.

Generation complete. Took 14851 milliseconds.
[INFO] Generation passed!


Note that I see the 'real' version of the Tigerstripe workbench, but not the OSGI versions of the plugins or the profile. It would be really good for traceability to see the actual OSGI plugin version in this list.

The profile version is coming from a version number in the profile file rather than the plugin version...

The plugin versions are better, but still miss off the qualifier number.

Steve
Comment 1 Richard Craddock CLA 2010-07-21 06:40:38 EDT
The information in the report is correct and useful IMHO, so I thik we just need to augment it.

Note that none of these *need* to be in an OSGI plugin, so this additional infor would be optional. Also note that the plugin version is not necessarily the same as the OSGI version number 

I think this means someting like:

Active Profile: XMP-IM Model Profile 1.47 (**osgi plugin **)

and 

[Project: xmp-im-connectivity-module, Plugin: XMP Hibernate Mapping
Generator(1.0.0)  (**osgi plugin **), Facet: default]
Generation Successful.


Does that make sense?
Comment 2 Daniel Johnson CLA 2010-09-15 16:40:14 EDT
Is this information currently available in the plugins? Are you just referring to reporting the version number? Currently the information about a plugin as defined in tigerstripe.xml looks like this: 
<plugin disableLogging="false" enabled="true" groupId="Cisco System, XMP team" logLevel="3" pluginId="XMP Hibernate Mapping Generator(1.1.1)" version="1.1.1">
Say we changed the version tag to 
version="[1.1.1,2.0.0)"
is this the osgi version you are referring to showing? If that is the case I don't see why we don't just show the version tag in the log all the time. But maybe I am all wrong about what you want/expect. :)
Comment 3 Richard Craddock CLA 2010-09-21 11:39:58 EDT
Reporting of the profile version is currently limited to the text content of the version field in the profile file.

Reporting the bundle where the profile file was originally located is very problematic, mainly because the location is no longer "accurate" - the profile is actually copied out to a different location, AND the profile does not necessarily contained in a bundle anyway.

We need to see if we can work out an acceptable solution.

You have mentioned that the text version is not sufficient - can we understand why? Is it not maintained accurately?

Looking at actual TS projects, the version there would be the text from the tigerstripe.xml
Comment 4 Daniel Johnson CLA 2010-09-23 11:17:39 EDT
Created attachment 179466 [details]
patch_319290

I was not able to add versioning for the profiles, but have added it for plugins and their owning project.
Class Changed: PluginRunStatus
Comment 5 Navid Mehregani CLA 2010-09-23 14:13:21 EDT
Patch submitted.  Thanks!