lib/liberty_buildpack/framework/contrast_security_agent.rb
#-----------------------------------------------------------------------------------------
# Create the contrast security agent options appended as java_opts.
#------------------------------------------------------------------------------------------
Create the contrast security agent options appended as java_opts.
Create the contrast security agent options appended as java_opts .
def release
      app_dir = @common_paths.relative_location
      contrast_home_dir = File.join(app_dir, CONTRAST_DIR)
      contrast_agent = File.join(contrast_home_dir, jar_name)
      contrast_config = File.join(contrast_home_dir, CONTRAST_CONFIG_NAME)
      @java_opts << "-javaagent:#{contrast_agent}=#{contrast_config}"
      @java_opts << "-Dcontrast.dir=#{contrast_home_dir}"
      @java_opts << "-Dcontrast.override.appname=#{vcap_app_name}"
    end
def release app_dir = @common_paths . relative_location contrast_home_dir = File . join ( app_dir , CONTRAST_DIR ) contrast_agent = File . join ( contrast_home_dir , jar_name ) contrast_config = File . join ( contrast_home_dir , CONTRAST_CONFIG_NAME ) @java_opts << "-javaagent:#{contrast_agent}=#{contrast_config}" @java_opts << "-Dcontrast.dir=#{contrast_home_dir}" @java_opts << "-Dcontrast.override.appname=#{vcap_app_name}" end
Create the contrast security agent options appended as java_opts.
Create the contrast security agent options appended as java_opts .
# Contrast paths within the droplet # specify contrast java options