Adding absolute path to play classpath

12 views
Skip to first unread message

David

unread,
Apr 27, 2017, 3:08:04 AM4/27/17
to Play Framework
Hello,

I would like to add an absolute path ( /etc/local ) to the play classpath.
I have tried different approaches:

- scriptClasspath in bashScriptDefines ~= (cp => "/etc/local" +: cp)

- unmanagedResourceDirectories in Compile ++= Seq(file("/etc/local"))

- scriptClasspath in bashScriptDefines ++= Seq("/etc/local")

But each time, the new path is considered as relative => declare -r app_classpath="$lib_dir//etc/local:$lib_dir/..

At the moment I solve the problem by declaring 

scriptClasspath in bashScriptDefines ~= (cp => "/../../../../../../../../../../etc/local" +: cp)

Which works but is far from being ideal.

Reply all
Reply to author
Forward
0 new messages