File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
modules/run/artifacts/opt/jboss/container/java/run Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,6 @@ get_classpath() {
195
195
echo " ${cp_path} "
196
196
}
197
197
198
- # Set process name if possible
199
- get_exec_args () {
200
- if [ " x${JAVA_APP_NAME} " != x ]; then
201
- echo " -a '${JAVA_APP_NAME} '"
202
- fi
203
- }
204
-
205
198
# Ensure that the running UID has the "jboss" passwd metadata
206
199
# XXX: Maybe we should make this an entrypoint for the image?
207
200
function configure_passwd() {
@@ -226,8 +219,11 @@ startup() {
226
219
else
227
220
args=" -jar ${JAVA_APP_JAR} "
228
221
fi
229
- log_info " exec $( get_exec_args) java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
230
- exec $( get_exec_args) java $( get_java_options) -cp " $( get_classpath) " ${args} $*
222
+
223
+ procname=" ${JAVA_APP_NAME-java} "
224
+
225
+ log_info " exec -a \" ${procname} \" java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
226
+ exec -a " ${procname} " java $( get_java_options) -cp " $( get_classpath) " ${args} $*
231
227
}
232
228
233
229
# =============================================================================
Original file line number Diff line number Diff line change @@ -35,3 +35,10 @@ Feature: Openshift OpenJDK Runtime tests
35
35
| variable | value |
36
36
| JAVA_ARGS | unique |
37
37
Then container log should not contain unique unique
38
+
39
+ @ubi8
40
+ Scenario : Check JAVA_APP_NAME can contain spaces (OPENJDK-104)
41
+ Given container is started with env
42
+ | variable | value |
43
+ | JAVA_APP_NAME | foo bar |
44
+ Then container log should not contain exec: bar': not found
You can’t perform that action at this time.
0 commit comments