QnaList > Groups > Play-Framework > Dec 2012
faq

[2.0.4] Multiple Conf Directories

Hi,
For a number of projects using shared code, I'm using 2 settings in Build.scala to include a shared codebase:
templatesImport += "shared.views._" for the templates and�resourceDirectory in Compile

asked Dec 18 2012 at 10:20

TheGroove's gravatar image



2 Replies for : [2.0.4] Multiple Conf Directories
I found the solution:
�unmanagedResourceDirectories in Compile 
� � � � � (base / "app" / "shared" / "conf") ::
� � � � � Nil
� � � � }
in Build.scala. This directive apparently adds additional resources to the classpath and allows for multiple entries, unlike resourceDirectory, which points straight to a single directory.

answered Dec 19 2012 at 04:33

TheGroove's gravatar image


val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
� � � � unmanagedResourceDirectories in Compile 
� � � � � (base / "app" / "shared" / "conf") ::
� � � � � Nil
� � � � }
� � )
...more specifically.

answered Dec 19 2012 at 04:47

TheGroove's gravatar image


Related discussions

Tagged

Group Play-framework

asked Dec 18 2012 at 10:20

active Dec 19 2012 at 04:47

posts:3

users:1

Play-framework

©2013 QnaList.com