Permalink
Browse files

Improve instantiation of mongo.json file.

  • Loading branch information...
1 parent fa40326 commit d806733cceef8f74d71d8eae27dd8d27f8f8b57f @marc0der marc0der committed Jan 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/resources/server.groovy
@@ -27,7 +27,7 @@ final VERTX_VERSION = '@VERTX_VERSION@'
//
def config
-def mongoJson = new File('mongo.json')
+def mongoJson = 'mongo.json' as File
if(mongoJson.exists()){
config = new JsonObject(mongoJson.text).toMap()
} else {

0 comments on commit d806733

Please sign in to comment.