Skip to content

Commit fe6f245

Browse files
committed
fix start command and options error
1 parent a7b0b1b commit fe6f245

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)