Skip to content

Instantly share code, notes, and snippets.

@fumokmm
Created May 17, 2010 20:02
Show Gist options
  • Save fumokmm/404166 to your computer and use it in GitHub Desktop.
Save fumokmm/404166 to your computer and use it in GitHub Desktop.
def prop = new Properties()
new File('/temp.properties.xml').withInputStream{ inStream ->
prop.loadFromXML(inStream)
}
prop.each {
println "${it.key} => ${it.value}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment