Bug 1020231

Summary: RFE: FSW installer should contain manifest with build version
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: ppecka <ppecka>
Component: InstallerAssignee: Thomas Hauser <thauser>
Status: CLOSED CURRENTRELEASE QA Contact: Len DiMaggio <ldimaggi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: ncross, psrna, soa-p-jira
Target Milestone: ER7   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description ppecka 2013-10-17 10:32:13 UTC
Description of problem:
Installer jar do not expose product build version. The only way i was able to get along with this is unzipping installer jar and than running strings command.
strings packs/pack-soa-fuse-serviceworks | grep JBoss-Product-Release-Version

produces:
JBoss-Product-Release-Version: 6.0.0.ER4-redhat-1


Would be great if the installer jar file contains build version and product name fuse-service-works-6.0.0.ER4-8-redhat-1 in plain text. Manifest file, or version.txt file placed in file root would work.

Comment 2 Nick Cross 2013-10-17 11:08:26 UTC
I'm not sure if it should contain "fuse-service-works" (as the installer might not be installing FSW) However we should put the version in there. 

Is it possible to extend IzPack to add further command line options like a "-version" ?

Comment 3 Thomas Hauser 2013-10-21 17:48:21 UTC
Expanding IzPack like that should be a cinch actually, and have it display a version variable we can specify at build time. Does that sound like a desirable resolution to this issue?

Comment 4 Thomas Hauser 2013-10-21 17:48:36 UTC
Expanding IzPack like that should be a cinch actually, and have it display a version variable we can specify at build time. Does that sound like a desirable resolution to this issue?

Comment 5 ppecka 2013-11-04 15:46:42 UTC
(In reply to Thomas Hauser from comment #4)
> Expanding IzPack like that should be a cinch actually, and have it display a
> version variable we can specify at build time. Does that sound like a
> desirable resolution to this issue?

Expanding IzPack seems to be sufficient solution

Comment 6 Thomas Hauser 2013-11-13 20:07:56 UTC
IzPack has been modified to display information in the following way:

[[thauser] [15:05:17] fsw-installer (vaultedSrampConfig)]$java -jar target/jboss-fsw-6.0.0.ER6-installer.jar -version
Version: 6.0.0.ER6

Is this sufficient? Do we need more information to be displayed? 

Thanks,
Tom

Comment 7 Thomas Hauser 2013-12-13 17:51:51 UTC
ER7-2 has this information available as per the above comment:

[[thauser] [12:51:35] fsw-installer (master)]$java -jar target/jboss-fsw-installer-6.0.0.ER7-redhat-2.jar -version
Product: Red Hat JBoss Fuse Service Works Installer
Version: 6.0.0.ER7-redhat-2

Comment 8 Pavol Srna 2013-12-16 12:11:37 UTC
Verified in ER7 build.