ddbtoaster/scripts/test/query_test.rb
#Takes a file and loads the properties in that file
Takes a file and loads the properties in that file
Takes a file and loads the properties in that file
def readProperties
  @propertiesFile = "#{File.expand_path(File.dirname($0))}/../../conf/ddbt.properties"
  @properties = {}
  IO.foreach(@propertiesFile) do |line|
    @properties[$1.strip] = $2 if line =~ /([^=]*)=(.*)\/\/(.*)/ || line =~ /([^=]*)=(.*)/
  end
end
def readProperties @propertiesFile = "#{File.expand_path(File.dirname($0))}/../../conf/ddbt.properties" @properties = { } IO . foreach ( @propertiesFile ) do | line | @properties [ $1 . strip ] = $2 if line =~ / ([^=]*)=(.*) \/ \/ (.*) / || line =~ / ([^=]*)=(.*) / end end
Takes a file and loads the properties in that file
Takes a file and loads the properties in that file