Skip to content

Commit 35b665a

Browse files
Merge pull request #1008 from schelini/zing-patch
fix start command and options error
2 parents f32bc01 + fe6f245 commit 35b665a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/java_buildpack/jre/zing_jre.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ module Jre
2626
class ZingJRE < OpenJDKLike
2727
# (see JavaBuildpack::Component::ModularComponent#command)
2828
def command
29-
''
3029
end
3130

3231
# (see JavaBuildpack::Component::ModularComponent#sub_components)
@@ -40,8 +39,8 @@ def sub_components(context)
4039

4140
# (see JavaBuildpack::Component::BaseComponent#release)
4241
def release
42+
@droplet.java_opts.add_preformatted_options '-XX:+ExitOnOutOfMemoryError'
4343
super
44-
@droplet.add_preformatted_options '-XX:+ExitOnOutOfMemoryError'
4544
end
4645
end
4746
end

0 commit comments

Comments
 (0)