1

Here's part of my build.sbt:

Project(...)... 
  .settings(...,
    resourceGenerators in Compile += myTask.taskValue, 
    mappings in (Compile, packageSrc) += { 
      ((resourceManaged in Compile).value / fileName) -> fileName 
    }
  )

Basically, I want to load this file at runtime -- how do I do that/where do I look for it?

I'm using sbt-assembly to package stuff up.

allidoiswin
  • 2,543
  • 1
  • 20
  • 23
  • 1
    Possible duplicate of [sbt-assembly: How do I include the static files in src/main/webapp](https://stackoverflow.com/questions/19502894/sbt-assembly-how-do-i-include-the-static-files-in-src-main-webapp). I think you can access generated resources same way as normally, so your question is about including them in the assembly jar. – laughedelic Mar 04 '18 at 12:27

0 Answers0