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 create_param(root, param_type, name, value)
      param = REXML::Element.new param_type, root
      param_name = REXML::Element.new 'param-name', param
      REXML::Text.new name, true, param_name
      param_value = REXML::Element.new 'param-value', param
      REXML::Text.new value, true, param_value
    end
def create_param ( root , param_type , name , value ) param = REXML :: Element . new param_type , root param_name = REXML :: Element . new 'param-name' , param REXML :: Text . new name , true , param_name param_value = REXML :: Element . new 'param-value' , param REXML :: Text . new value , true , param_value end
Creates a new instance of the modifier.
Creates a new instance of the modifier .
root
param_type
name
value
source the content of the +web.xml+ file to modify
source the content of the + web . xml + file to modify