File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
modules/run/artifacts/opt/jboss/container/java/run Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ export JBOSS_CONTAINER_UTIL_LOGGING_MODULE="/opt/jboss/container/util/logging"
8
8
export JBOSS_CONTAINER_JAVA_RUN_MODULE=" /opt/jboss/container/java/run"
9
9
10
10
# This is moved here after deleting run-env.sh
11
- export JAVA_APP_DIR=/deployments
11
+ # Default the application dir to the S2I deployment dir
12
+ if [ -z " $JAVA_APP_DIR " ]
13
+ then JAVA_APP_DIR=/deployments
14
+ fi
12
15
13
16
source " $JBOSS_CONTAINER_UTIL_LOGGING_MODULE /logging.sh"
14
17
@@ -100,12 +103,12 @@ load_env() {
100
103
101
104
# Check also $JAVA_APP_DIR. Overrides other defaults
102
105
# It's valid to set the app dir in the default script
103
- if [ -z " ${JAVA_APP_DIR} " ]; then
104
- # XXX: is this correct? This is defaulted above to /deployments. Should we
105
- # define a default to the old /opt/java-run?
106
- export JAVA_APP_DIR=" ${JBOSS_CONTAINER_JAVA_RUN_MODULE} "
106
+ if [ -f " ${JAVA_APP_DIR} /${run_env_sh} " ]; then
107
+ source " ${JAVA_APP_DIR} /${run_env_sh} "
107
108
fi
108
109
110
+ export JAVA_APP_DIR
111
+
109
112
# JAVA_LIB_DIR defaults to JAVA_APP_DIR
110
113
export JAVA_LIB_DIR=" ${JAVA_LIB_DIR:- ${JAVA_APP_DIR} } "
111
114
if [ -z " ${JAVA_MAIN_CLASS} " ] && [ -z " ${JAVA_APP_JAR} " ]; then
You can’t perform that action at this time.
0 commit comments