File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
modules/run/artifacts/opt/jboss/container/java/run Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -182,13 +182,6 @@ get_classpath() {
182
182
echo " ${cp_path} "
183
183
}
184
184
185
- # Set process name if possible
186
- get_exec_args () {
187
- if [ " x${JAVA_APP_NAME} " != x ]; then
188
- echo " -a '${JAVA_APP_NAME} '"
189
- fi
190
- }
191
-
192
185
# Start JVM
193
186
startup () {
194
187
# Initialize environment
@@ -201,8 +194,11 @@ startup() {
201
194
else
202
195
args=" -jar ${JAVA_APP_JAR} "
203
196
fi
204
- log_info " exec $( get_exec_args) java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
205
- exec $( get_exec_args) java $( get_java_options) -cp " $( get_classpath) " ${args} $*
197
+
198
+ procname=" ${JAVA_APP_NAME-java} "
199
+
200
+ log_info " exec -a \" ${procname} \" java $( get_java_options) -cp \" $( get_classpath) \" ${args} $* "
201
+ exec -a " ${procname} " java $( get_java_options) -cp " $( get_classpath) " ${args} $*
206
202
}
207
203
208
204
# =============================================================================
Original file line number Diff line number Diff line change @@ -28,10 +28,16 @@ Feature: Openshift OpenJDK Runtime tests
28
28
29
29
@ubi9
30
30
Scenario : Check JAVA_OPTS overrides JAVA_OPTS_APPEND
31
- piv
32
31
Given container is started with env
33
32
| variable | value |
34
33
| JAVA_OPTS | -verbose :gc |
35
34
| JAVA_OPTS_APPEND | -Xint |
36
35
Then container log should contain -verbose:gc
37
36
And container log should not contain -Xint
37
+
38
+ @ubi9
39
+ Scenario : Check JAVA_APP_NAME can contain spaces (OPENJDK-1551)
40
+ Given container is started with env
41
+ | variable | value |
42
+ | JAVA_APP_NAME | foo bar |
43
+ Then container log should not contain exec: bar': not found
You can’t perform that action at this time.
0 commit comments