File tree Expand file tree Collapse file tree
lib/java_buildpack/container Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ def compile
5858 # @return [String] the command to run the application.
5959 def release
6060 @java_opts << "-D#{ KEY_HTTP_PORT } =$PORT"
61- # Change single quotes to double quotes with escape so that options such as
62- # -XX:OnOutOfMemoryError='kill -9 %p' pass through the Play start script correctly.
63- quoted_java_opts = java_opts . gsub ( "' " , '\" ' )
64- "PATH=#{ @java_home } /bin:$PATH JAVA_HOME=#{ @java_home } ./#{ PLAY_START_SCRIPT } #{ quoted_java_opts } "
61+ # Expunge the option OnOutOfMemoryError option if it occurs as it does not seem possible to pass
62+ # this through to the Play start script correctly.
63+ sanitised_java_opts = java_opts . gsub ( "-XX:OnOutOfMemoryError='kill -9 %p' " , '' )
64+ "PATH=#{ @java_home } /bin:$PATH JAVA_HOME=#{ @java_home } ./#{ PLAY_START_SCRIPT } #{ sanitised_java_opts } "
6565 end
6666
6767 private
You can’t perform that action at this time.
0 commit comments