lib/liberty_buildpack/framework/java_opts.rb
# Creates an instance, passing in an arbitrary collection of options.
#
# @param [Hash] context the context that is provided to the instance
# @option context [Array<String>] :java_opts an array that Java options can be added to
# @option context [Hash] :configuration the properties provided by the user
Creates an instance, passing in an arbitrary collection of options.
Creates an instance passing in an arbitrary collection of options .
def parsed_java_opts
      parsed_java_opts = []
      parsed_java_opts.concat @configuration[CONFIGURATION_PROPERTY].shellsplit if supports_configuration?
      parsed_java_opts.concat @environment[ENVIRONMENT_VARIABLE].shellsplit if supports_environment?
      parsed_java_opts.map { |java_opt| java_opt.gsub(/([\s])/, '\\\\\1') }
    end
def parsed_java_opts parsed_java_opts = [ ] parsed_java_opts . concat @configuration [ CONFIGURATION_PROPERTY ] . shellsplit if supports_configuration? parsed_java_opts . concat @environment [ ENVIRONMENT_VARIABLE ] . shellsplit if supports_environment? parsed_java_opts . map { | java_opt | java_opt . gsub ( / ([ \s ]) / , '\\\\\1' ) } end
Creates an instance, passing in an arbitrary collection of options.
Creates an instance passing in an arbitrary collection of options .
context the context that is provided to the instance
context the context that is provided to the instance
context
:configuration the properties provided by the user
: configuration the properties provided by the user