[Groovy]Parse properties file in Groovy

def props = new Properties()
new File("foo.properties").withInputStream { s ->
  props.load(s) 
}
println props
posted @ 2015-01-25 13:52  卜海清  阅读(245)  评论(0编辑  收藏  举报