Skip to content

Commit 24f6317

Browse files
committed
[OPENJDK-2968] simplify s2i/run's invocation of run-java.sh
Don't touch $JAVA_ARGS in s2i/run, leave that responsibility to run-java.sh. <https://issues.redhat.com/browse/OPENJDK-2968> Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 497902d commit 24f6317

File tree

2 files changed

+4
-5
lines changed
  • modules
    • run/artifacts/opt/jboss/container/java/run
    • s2i/bash/artifacts/usr/local/s2i

2 files changed

+4
-5
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,6 @@ startup() {
247247

248248
# =============================================================================
249249
# Fire up
250-
startup $*
250+
251+
echo "Starting the Java application using ${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh $* ${JAVA_ARGS}"
252+
startup $* ${JAVA_ARGS}

modules/s2i/bash/artifacts/usr/local/s2i/run

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ source "${JBOSS_CONTAINER_JAVA_S2I_MODULE}/s2i-core-hooks"
1111
# Global S2I variable setup
1212
s2i_core_env_init
1313

14-
export JAVA_OPTS
15-
16-
echo "Starting the Java application using ${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh $args ${JAVA_ARGS}"
17-
exec "${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh" $args ${JAVA_ARGS}
14+
exec "${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh" $args

0 commit comments

Comments
 (0)