Copy Resources to Output Path ala Package

Answered

Hi All,

Using 2020.1 CE. I have a standard Java project that builds and works fine. The resources are copied from the resources/ directory to the target output directory; however, since my project uses a package, e.g., org.acme, I'd prefer the resources get copied to the output/org/acme directory, where the rest of the .class files live. Is this possible to set up? Do I need to do a post-build step?

A related question: Should the resources be copied where the .class files live in the first place, or should I update the JVM classpath to include the output directory instead?

Thanks,
John

 

0
1 comment

Resources in classpath is fine.

Create org/acme subdirectories under resources directory.

0

Please sign in to leave a comment.