Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij include src files in jar file

I remember a while back with eclipse or netbeans I was able to easily include my source files in my jar file. I have moved to intellij 10 community edition and find myself needing to do the same thing. Any hints?

like image 693
jdc0589 Avatar asked Jan 20 '11 19:01

jdc0589


People also ask

How do I add a resource file to a JAR file?

1) click project -> properties -> Build Path -> Source -> Add Folder and select resources folder. 2) create your JAR!


1 Answers

I figured it out...

Click the '+' button in the 'output layout' tab -> include directory contents -> select your src directory. That did it

like image 185
jdc0589 Avatar answered Sep 26 '22 21:09

jdc0589