Skip to content

Commit 1332cb9

Browse files
authored
Merge pull request #434 from jfdenise/main
UBI10, jvm_specific_diagnostics has been removed (OPENJDK-4030)
2 parents 6bb03e6 + eae6d29 commit 1332cb9

File tree

1 file changed

+9
-6
lines changed
  • jboss/container/wildfly/run/1.0/common/artifacts/opt/jboss/container/wildfly/run

1 file changed

+9
-6
lines changed

jboss/container/wildfly/run/1.0/common/artifacts/opt/jboss/container/wildfly/run/run

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ GC_METASPACE_SIZE=${GC_METASPACE_SIZE:-96}
3434

3535
JAVA_OPTS="$(adjust_java_options ${JAVA_OPTS})"
3636

37-
# If JAVA_DIAGNOSTICS and there is jvm_specific_diagnostics, move the settings to PREPEND_JAVA_OPTS
38-
# to bypass the specific EAP checks done on JAVA_OPTS in standalone.sh that could remove the GC EAP specific log configurations
39-
JVM_SPECIFIC_DIAGNOSTICS=$(jvm_specific_diagnostics)
40-
if [ "x$JAVA_DIAGNOSTICS" != "x" ] && [ "x{JVM_SPECIFIC_DIAGNOSTICS}" != "x" ]; then
41-
JAVA_OPTS=${JAVA_OPTS/${JVM_SPECIFIC_DIAGNOSTICS} /}
42-
PREPEND_JAVA_OPTS="${JVM_SPECIFIC_DIAGNOSTICS} ${PREPEND_JAVA_OPTS}"
37+
# Has been removed for UBI10 openjdk support
38+
if [ -n "$(type -t jvm_specific_diagnostics)" ]; then
39+
# If JAVA_DIAGNOSTICS and there is jvm_specific_diagnostics, move the settings to PREPEND_JAVA_OPTS
40+
# to bypass the specific EAP checks done on JAVA_OPTS in standalone.sh that could remove the GC EAP specific log configurations
41+
JVM_SPECIFIC_DIAGNOSTICS=$(jvm_specific_diagnostics)
42+
if [ "x$JAVA_DIAGNOSTICS" != "x" ] && [ "x{JVM_SPECIFIC_DIAGNOSTICS}" != "x" ]; then
43+
JAVA_OPTS=${JAVA_OPTS/${JVM_SPECIFIC_DIAGNOSTICS} /}
44+
PREPEND_JAVA_OPTS="${JVM_SPECIFIC_DIAGNOSTICS} ${PREPEND_JAVA_OPTS}"
45+
fi
4346
fi
4447

4548
# Make sure that we use /dev/urandom (CLOUD-422)

0 commit comments

Comments
 (0)