application.conf : include file with absolute path

170 views
Skip to first unread message

Neoh59

unread,
Aug 1, 2011, 8:50:36 AM8/1/11
to play-fr...@googlegroups.com
Hi all,

For company requirements I need to deploy my apps with a zipped war but with some config properties in a plain text file outside the war.

I sometimes used "@include" feature in application.conf but it's only to include files stored in the application conf folder.
What is the best way to do that ?

I thought about adding "@include-absolute" feature ... but I'm not friendly with Git to sumit a patch, and can't wait (and perhaps it won't be accepted)
I'm reading about onConfigurationRead but don't know how to use it.
...

Regards

Neoh59

unread,
Mar 10, 2012, 1:19:21 PM3/10/12
to play-fr...@googlegroups.com
If it can help someone else, I created the #1461 ticket and submit a pull request.

sas

unread,
Mar 10, 2012, 4:24:13 PM3/10/12
to play-framework
a quick workaround would be to use a symlink to your file...

Neoh59

unread,
Mar 10, 2012, 6:15:04 PM3/10/12
to play-fr...@googlegroups.com
Like I said my company's requirements is to package my app as a zip war file (deploy into JBoss)
So I can not use a symlink (or perhaps I don't understand something)
Reply all
Reply to author
Forward
0 new messages