How are resources copied?

hi,

i was pulling out my hair about not being able to load a font resource, until i realized that IDEA simply didn't copy it to the production folder.

i have a project layout created with sbt, so src/main/scala and src/main/resources are my source folders. the contents of src/main/resources is

de/sciss/dorianlaf/canvas.png
de/sciss/dorianlaf/glow.png
de/sciss/dorianlaf/DorianLaF.xml
de/sciss/dorianlaf/cafeta.ttf

but IDEA only copies the png and xml files to out/production, not the ttf!

any clues how to fix this issue?

thanks, -sciss-

0

Settings (Ctrl-Alt-S) -> Compiler -> Resource Patterns

0
Avatar
Permanently deleted user

great, thanks for the fast answer! i was blindly looking at settings -> resources and settings -> file types ...

best, -sciss-

0

another way is to specify an artifact int he module settings and tell idea which files should be copied where explicitly

0

请先登录再写评论。