Skip to content

Instantly share code, notes, and snippets.

@marcospereira
Created September 14, 2010 01:15
Show Gist options
  • Save marcospereira/578372 to your computer and use it in GitHub Desktop.
Save marcospereira/578372 to your computer and use it in GitHub Desktop.
def databaseProperties = new Properties()
databaseProperties.load(new File('access.properties').newInputStream())
application {
db {
url = "jdbc:postgresql://localhost/groovy_dev"
driver = "org.postgresql.Driver"
user = databaseProperties.user
pass = databaseProperties.pass
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment