Skip to content

Commit e5a0df6

Browse files
committed
Merge branch 'owsm-in-wls' into 'main'
Add OWSM component to base WLS install See merge request weblogic-cloud/weblogic-image-tool!510
2 parents 4b2a7e3 + a0e5bca commit e5a0df6

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/aru/AruUtil.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ public List<AruPatch> getLatestPsu(FmwInstallerType type, String version, Archit
110110
throws AruException {
111111
List<AruPatch> result = new ArrayList<>();
112112
for (AruProduct product : type.products()) {
113+
if (product == AruProduct.OWSM && ("14.1.1.0.0".equals(version) || "15.1.1.0.0".equals(version))) {
114+
// OWSM is included with WLS installs, but OWSM did not have a release in 14.1.1 and 15.1.1
115+
continue;
116+
}
113117
List<AruPatch> psuList = getLatestPsu(product, version, architecture, userId, password);
114118
if (!psuList.isEmpty()) {
115119
for (AruPatch psu: psuList) {
@@ -178,6 +182,10 @@ public List<AruPatch> getRecommendedPatches(FmwInstallerType type, String versio
178182
String userId, String password) throws AruException {
179183
List<AruPatch> result = new ArrayList<>();
180184
for (AruProduct product : type.products()) {
185+
if (product == AruProduct.OWSM && ("14.1.1.0.0".equals(version) || "15.1.1.0.0".equals(version))) {
186+
// OWSM is included with WLS installs, but OWSM did not have a release in 14.1.1 and 15.1.1
187+
continue;
188+
}
181189
List<AruPatch> patches = getRecommendedPatches(type, product, version, architecture, userId, password);
182190

183191
if (!patches.isEmpty()) {

imagetool/src/main/java/com/oracle/weblogic/imagetool/installer/FmwInstallerType.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,17 @@ public enum FmwInstallerType {
2626

2727
// Oracle WebLogic Server
2828
WLS(Utils.toSet(AruProduct.WLS, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.FIT, AruProduct.JDBC,
29-
AruProduct.FMW_GLCM,
30-
AruProduct.OSS), InstallerType.WLS), // Added OSS for a special patching issue for 12.2.1.4 JDBC fix
29+
AruProduct.FMW_GLCM, AruProduct.OSS, AruProduct.OWSM),
30+
InstallerType.WLS),
31+
// WLS: Added OSS for a special patching issue for 12.2.1.4 JDBC fix
32+
// WLS: Added OWSM because osdt jars are included in the WLS install
3133
WLSSLIM(Utils.toSet(WLS.products),
3234
InstallerType.WLSSLIM),
3335
WLSDEV(Utils.toSet(WLS.products),
3436
InstallerType.WLSDEV),
3537

3638
// Oracle WebLogic Server Infrastructure (JRF)
37-
FMW(Utils.toSet(WLS.products, AruProduct.JRF, AruProduct.JDEV, AruProduct.OPSS, AruProduct.OWSM),
39+
FMW(Utils.toSet(WLS.products, AruProduct.JRF, AruProduct.JDEV, AruProduct.OPSS),
3840
InstallerType.FMW),
3941
// Oracle Service Bus
4042
OSB(Utils.toSet(FMW.products, AruProduct.OSB),

imagetool/src/test/java/com/oracle/weblogic/imagetool/installer/InstallerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ void fmwInstallerTypeListTest() {
3838

3939
@Test
4040
void fmwInstallerProductIds() {
41-
AruProduct[] list1 = {AruProduct.WLS, AruProduct.FMW_GLCM, AruProduct.COH, AruProduct.FMWPLAT, AruProduct.JDBC,
42-
AruProduct.FIT, AruProduct.OSS};
41+
AruProduct[] list1 = {AruProduct.WLS, AruProduct.FIT, AruProduct.JDBC, AruProduct.OSS, AruProduct.OWSM,
42+
AruProduct.COH, AruProduct.FMWPLAT, AruProduct.FMW_GLCM};
4343
assertEquals(Utils.toSet(list1), FmwInstallerType.WLS.products(),
4444
"WLS product list is incorrect or out of order");
4545

0 commit comments

Comments
 (0)