Method: Jars#to_prop

Defined in:
lib/jar_dependencies.rb,
lib/jar_dependencies.rb

#to_prop(key) ⇒ Object


55
56
57
58
59
# File 'lib/jar_dependencies.rb', line 55

def to_prop( key )
  key = key.gsub( '_', '.' )
  ENV_JAVA[ ( key.downcase!; key ) ] ||
    ENV[ ( key.gsub!( '.', '_' ); key.upcase!; key ) ]
end