Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
#136 Sort properties so that the longer ones will match when doing su…
Browse files Browse the repository at this point in the history
…bstitutions
  • Loading branch information
dmcassel committed Sep 16, 2013
1 parent 4296854 commit a919326
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_properties

def info
logger.info "Properties:"
@properties.each do |k, v|
@properties.sort {|x,y| y <=> x}.each do |k, v|
logger.info k + ": " + v
end
end
Expand Down Expand Up @@ -1365,7 +1365,10 @@ def build_config(config_file)
else
config.gsub!("@ml.rewrite-resolves-globally", "")
end
@properties.each do |k, v|
# @properties.each do |k, v|
# config.gsub!("@#{k}", v)
# end
@properties.sort {|x,y| y <=> x}.each do |k, v|
config.gsub!("@#{k}", v)
end

Expand Down

0 comments on commit a919326

Please sign in to comment.