Skip to content

Instantly share code, notes, and snippets.

@marcospereira
Created September 14, 2010 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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