为功能部件扩展提供产品信息
可以为功能部件扩展提供版本产品信息。
要为功能部件扩展提供版本产品信息,可以在扩展的 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.productReplaces=theProductIdToReplace
以下示例说明了如何使用 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: 16.0.0.2
Product name: XYZ User Product
Product version: 1.0.0