lib/liberty_buildpack/framework/spring_auto_reconfiguration/web_xml_modifier.rb
# Creates a new instance of the modifier.
#
# @param [REXML::Document, String, IO] source the content of the +web.xml+ file to modify
Creates a new instance of the modifier.
Creates a new instance of the modifier .
def augment(root, param_type)
      classes_string = xpath(root, "#{param_type}[param-name[contains(text(), '#{CONTEXT_INITIALIZER_CLASSES}')]]/param-value/text()").first
      classes_string = create_param(root, param_type, CONTEXT_INITIALIZER_CLASSES, '') unless classes_string
      classes = classes_string.value.strip.split(/[,;\s]+/)
      classes = classes.concat CONTEXT_INITIALIZER_ADDITIONAL
      classes_string.value = classes.join(',')
    end
def augment ( root , param_type ) classes_string = xpath ( root , "#{param_type}[param-name[contains(text(), '#{CONTEXT_INITIALIZER_CLASSES}')]]/param-value/text()" ) . first classes_string = create_param ( root , param_type , CONTEXT_INITIALIZER_CLASSES , '' ) unless classes_string classes = classes_string . value . strip . split ( / [,; \s ]+ / ) classes = classes . concat CONTEXT_INITIALIZER_ADDITIONAL classes_string . value = classes . join ( ',' ) end
Creates a new instance of the modifier.
Creates a new instance of the modifier .
root
param_type
source the content of the +web.xml+ file to modify
source the content of the + web . xml + file to modify