Need to add support for file mapping of resources #2592
Labels
difficulty / easy
Any change that is easy to implement.
feature
priority / low
Any change that has a low priority to be fixed.
Bloop should add support for file mapping of resource files (directories and single files) so they are available at custom 'jar' locations at runtime. Essentially be able to do something like make the file at src/main/resources/myfile.txt be available as a jar resource at /custompath/myfilerenamed.txt.
Rationale:
SBT and other Build Tools support this mapping of files to specific and arbitrary places into the jar. SBT does it using the "mapping" field; see https://www.scala-sbt.org/1.x/docs/Mapping-Files.html. If Bloop supported this, then the resources would be available in proper places during bloop run, bloop debug and bloop test.
Adding this functionality will make bloop more comprehensive and correct during bloop run/debug/test.
Suggested implementation:
My main desire is for Bloop to handle single-file arbitrary mapping, which we currently rely on.
Note: This is kind of related to #1631.
The text was updated successfully, but these errors were encountered: