Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT task to copy property file from project folder to webapp

Tags:

scala

sbt

I'm new to scala and Sbt. I am trying to implement internationalization using JQuery i18n plugIn. My project folder structure contains messages.properties file in /src/main/resources/i18n folder which will be copied to classes folder during sbt compile/package. Jquery can access only if the file is under webapp folder. Is there a way to create a task in build.sbt to copy property file from src/main/resources folder to webapp folder.

like image 895
user1637152 Avatar asked Nov 04 '22 17:11

user1637152


1 Answers

Instead of doing that, have you tried using a /classpath URL to load your properties for the jQuery plugin?

like image 116
Channing Walton Avatar answered Nov 13 '22 11:11

Channing Walton