Skip to content

Commit ceada3a

Browse files
authored
Merge branch 'main' into dependabot/maven/org.apache.httpcomponents-httpmime-4.5.13
2 parents f49eda5 + 1cc1d48 commit ceada3a

File tree

9 files changed

+39
-17
lines changed

9 files changed

+39
-17
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public enum AruProduct {
3232

3333
private final String productId;
3434
private final String description;
35+
3536
AruProduct(String productId, String description) {
3637
this.productId = productId;
3738
this.description = description;

imagetool/src/main/java/com/oracle/weblogic/imagetool/cli/cache/CacheCLI.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
import picocli.CommandLine.Unmatched;
1111

1212
@Command(
13-
name = "cache",
14-
description = "List and set cache options",
15-
versionProvider = HelpVersionProvider.class,
16-
commandListHeading = "%nCommands:%n%n",
17-
subcommands = {
18-
ListCacheItems.class,
19-
AddInstallerEntry.class,
20-
AddPatchEntry.class,
21-
AddEntry.class,
22-
DeleteEntry.class
23-
},
24-
sortOptions = false
13+
name = "cache",
14+
description = "List and set cache options",
15+
versionProvider = HelpVersionProvider.class,
16+
commandListHeading = "%nCommands:%n%n",
17+
subcommands = {
18+
ListCacheItems.class,
19+
AddInstallerEntry.class,
20+
AddPatchEntry.class,
21+
AddEntry.class,
22+
DeleteEntry.class
23+
},
24+
sortOptions = false
2525
)
2626
public class CacheCLI {
2727

imagetool/src/main/java/com/oracle/weblogic/imagetool/inspect/InspectOutput.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ public String toString() {
7373
result.append(jsonKeyValuePair(2, "id", os.id())).append(",\n");
7474
result.append(jsonKeyValuePair(2, "name", os.name())).append(",\n");
7575
result.append(jsonKeyValuePair(2, "version", os.version())).append("\n");
76+
if (os.releasePackage() != null) {
77+
result.append(jsonKeyValuePair(2, "releasePackage", os.releasePackage())).append("\n");
78+
}
7679
result.append(pad(1)).append("},");
7780
result.append('\n');
7881
}

imagetool/src/main/java/com/oracle/weblogic/imagetool/inspect/OperatingSystemProperties.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class OperatingSystemProperties {
1111
private String id;
1212
private String version;
1313
private String name;
14+
private String releasePackage;
1415

1516
public String id() {
1617
return id;
@@ -24,6 +25,10 @@ public String name() {
2425
return name;
2526
}
2627

28+
public String releasePackage() {
29+
return releasePackage;
30+
}
31+
2732
/**
2833
* Using the properties obtained from the image, extract the OS properties prefixed with __OS__.
2934
* @param imageProperties properties returned from the image inspection
@@ -37,6 +42,7 @@ public static OperatingSystemProperties getOperatingSystemProperties(Properties
3742
result.version = removeQuotes(imageProperties.getProperty("__OS__VERSION_ID"));
3843
}
3944
result.name = removeQuotes(imageProperties.getProperty("__OS__NAME"));
45+
result.releasePackage = imageProperties.getProperty("__OS__RELEASE_PACKAGE");
4046
return result;
4147
}
4248

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public enum FmwInstallerType {
8383

8484
private final InstallerType[] installers;
8585
private final Set<AruProduct> products;
86+
8687
FmwInstallerType(Set<AruProduct> products, InstallerType... installers) {
8788
this.installers = installers;
8889
this.products = products;

imagetool/src/main/resources/probe-env/inspect-image-long.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ fi
8686

8787
if [ -f "/etc/os-release" ]; then
8888
grep '=' /etc/os-release | sed 's/^/__OS__/'
89+
releasePackage="$(type rpm >/dev/null 2>&1 && rpm -qf /etc/os-release || echo '')"
90+
if [ -n "$releasePackage" ]; then
91+
echo __OS__RELEASE_PACKAGE=$releasePackage
92+
fi
8993
elif type busybox > /dev/null 2>&1; then
9094
echo __OS__ID="bb"
9195
echo __OS__NAME="$(busybox | head -1 | awk '{ print $1 }')"

imagetool/src/main/resources/probe-env/inspect-image.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ fi
6666

6767
if [ -f "/etc/os-release" ]; then
6868
grep '=' /etc/os-release | sed 's/^/__OS__/'
69+
releasePackage="$(type rpm >/dev/null 2>&1 && rpm -qf /etc/os-release || echo '')"
70+
if [ -n "$releasePackage" ]; then
71+
echo __OS__RELEASE_PACKAGE=$releasePackage
72+
fi
6973
elif type busybox > /dev/null 2>&1; then
7074
echo __OS__ID="bb"
7175
echo __OS__NAME="$(busybox | head -1 | awk '{ print $1 }')"

imagetool/src/test/java/com/oracle/weblogic/imagetool/cli/menu/CommonOptionsTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ private static void setPrivateField(String fieldname, Object target, Object valu
4444
/**
4545
* handleChown() should set the Dockerfile userid and groupid.
4646
* use case: user provides derek:data. Result should be "derek" for user and "data" for group.
47+
*
4748
* @throws Exception if reflection fails (developer error)
4849
*/
4950
@Test
@@ -66,6 +67,7 @@ void handleChown() throws Exception {
6667
/**
6768
* handleChown() should set the Dockerfile userid and groupid.
6869
* use case: default, no input. Result should be "oracle" for both.
70+
*
6971
* @throws Exception if reflection fails (developer error)
7072
*/
7173
@Test
@@ -87,6 +89,7 @@ void handleChownDefault() throws Exception {
8789

8890
/**
8991
* Test CommonOptions handleChown method.
92+
*
9093
* @throws Exception if reflection fails (developer error)
9194
*/
9295
@Test
@@ -172,7 +175,7 @@ void testResolveOptions() throws Exception {
172175
resourceTemplatesField.setAccessible(true);
173176
List<Path> resolveFiles =
174177
Arrays.asList(new File("target/test-classes/templates/resolver.yml").toPath(),
175-
new File("target/test-classes/templates/verrazzano.yml").toPath());
178+
new File("target/test-classes/templates/verrazzano.yml").toPath());
176179
resourceTemplatesField.set(wdtOptions, resolveFiles);
177180

178181
Field imageTagField = WdtFullOptions.class.getDeclaredField("wdtDomainHome");

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<plugin>
164164
<groupId>org.codehaus.mojo</groupId>
165165
<artifactId>exec-maven-plugin</artifactId>
166-
<version>1.6.0</version>
166+
<version>3.1.0</version>
167167
<executions>
168168
<execution>
169169
<id>generate-autocompletion-script</id>
@@ -214,7 +214,7 @@
214214
<plugin>
215215
<groupId>org.apache.maven.plugins</groupId>
216216
<artifactId>maven-checkstyle-plugin</artifactId>
217-
<version>3.1.0</version>
217+
<version>3.1.2</version>
218218
<executions>
219219
<execution>
220220
<id>checkstyle</id>
@@ -261,7 +261,7 @@
261261
<plugin>
262262
<groupId>org.jacoco</groupId>
263263
<artifactId>jacoco-maven-plugin</artifactId>
264-
<version>0.8.7</version>
264+
<version>0.8.8</version>
265265
<executions>
266266
<execution>
267267
<id>prepare-agent</id>
@@ -286,7 +286,7 @@
286286
<plugin>
287287
<groupId>org.apache.maven.plugins</groupId>
288288
<artifactId>maven-enforcer-plugin</artifactId>
289-
<version>3.0.0-M2</version>
289+
<version>3.1.0</version>
290290
</plugin>
291291
</plugins>
292292
</pluginManagement>

0 commit comments

Comments
 (0)