sbt / sbt-onejar

Packages your project using One-JAR™
MIT License
268 stars 45 forks source link

include main/resources in the jar #26

Open stla opened 10 years ago

stla commented 10 years ago

Hello, I have a file in main/resources and I want to include it in the jar. It is not included when running one-jar. Is there a way to include it ?

yadavan88 commented 9 years ago

Hi Stla, You can include it by explicitly providing through java options.

java -Dlogback.configurationFile="config.xml" -jar one-jar.jar

I had the same issue and resolved it like the above line.