为功能部件扩展提供产品信息

可以为功能部件扩展提供版本产品信息。

要为功能部件扩展提供版本产品信息,可以在扩展的 lib/versions 目录中向安装提供名称唯一的产品信息属性文件。文件扩展名必须为 .properties

可以手动添加版本产品信息,也可以在下列情况下使用 featureManager 脚本的安装选项来添加版本产品信息:

  • 功能部件归档中子系统清单文件包含一个 subsystem-content 条目,指向正在安装的产品信息属性文件。
  • 仅当正在安装的功能部件定义了 IBM-Feature-Version 时,才可安装产品信息属性文件。
  • 功能部件归档 (.esa) 中的产品信息属性文件具有下列路径 wlp/lib/versions/filename.properties
可以在产品信息属性文件中指定以下属性:
com.ibm.websphere.productId=yourProductID
com.ibm.websphere.productOwner=TheProductOwner
com.ibm.websphere.productVersion=yourProductVersion
com.ibm.websphere.productName=yourProductName
com.ibm.websphere.productInstallType=yourProductInstallType
com.ibm.websphere.productEdition=yourProductEdition
com.ibm.websphere.productQualifier=yourProductQualifier
如果要覆盖特定的功能部件扩展信息,请在产品信息属性文件中包含以下属性:
com.ibm.websphere.productReplaces=theProductIdToReplace
如果您的产品符合子容量定价入门 (GSSP),那么在产品信息属性文件中将以下属性设置为true
com.ibm.websphere.gssp=true
以下示例说明了如何使用 featureManager 脚本 subsystem.mf 来定义用于安装功能部件扩展的子系统条目内容:
Subsystem-ManifestVersion:1
...
Subsystem-Content: userProdExt; version="[1,1.0.100]",
user.ext.version.info; type="file"; location:="lib/versions/user.ext.version.info.properties"
IBM-Feature-Version: 2

以下示例显示了使用 version 选项的 productInfo 脚本的输出,输出中显示了产品信息属性文件中所指定的产品名称条目和版本条目:

com.ibm.websphere.productId=XYZ Product ID
com.ibm.websphere.productOwner=XYZ Inc
com.ibm.websphere.productVersion=1.0.0
com.ibm.websphere.productName=XYZ User Product
com.ibm.websphere.productInstallType=Archive
com.ibm.websphere.productEdition=Enterprise Edition
Command:
productInfo version
Output:
Product name: Websphere Application Server
Product version: 8.5.5.0

Product name: XYZ User Product
Product version: 1.0.0

用于指示主题类型的图标 参考主题

信息中心的条款和条件 | 反馈


时间戳记图标 最近一次更新时间: Wednesday, 2 September 2015
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=rwlp_providing_product_info
文件名:rwlp_providing_product_info.html