Skip to content

Commit 864841e

Browse files
authored
Merge pull request #244 from jhuttana/OPENJDK_474
Delete duplicate JAVA_ARGS value in the logs ubi8/openjdk image.
2 parents 4ab93fb + 41f5cd2 commit 864841e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

modules/run/artifacts/opt/jboss/container/java/run/run-java.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ startup() {
241241
else
242242
args="-jar ${JAVA_APP_JAR}"
243243
fi
244-
log_info "exec $(get_exec_args) java $(get_java_options) -cp \"$(get_classpath)\" ${args} $* ${JAVA_ARGS}"
244+
log_info "exec $(get_exec_args) java $(get_java_options) -cp \"$(get_classpath)\" ${args} $*"
245245
exec $(get_exec_args) java $(get_java_options) -cp "$(get_classpath)" ${args} $*
246246
}
247247

tests/features/java/runtime.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,15 @@ Feature: Openshift OpenJDK Runtime tests
3535
| JAVA_DIAGNOSTICS | true |
3636
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
3737
And container log should contain -XX:NativeMemoryTracking=summary
38+
39+
@openjdk
40+
@ubi8/openjdk-8
41+
@ubi8/openjdk-11
42+
@ubi8/openjdk-17
43+
@redhat-openjdk-18
44+
@openj9
45+
Scenario: OPENJDK-474 to ensure JAVA_ARGS is not duplicated in the java command line
46+
Given container is started with env
47+
| variable | value |
48+
| JAVA_ARGS | unique |
49+
Then container log should not contain unique unique

0 commit comments

Comments
 (0)