开发者

Intellij include src files in jar file

开发者 https://www.devze.com 2023-02-05 14:42 出处:网络
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

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?


I figured it out...

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


did you try this

http://blogs.jetbrains.com/idea/tag/artifacts/

basically you

  1. right click on the project
  2. select Open Module Settings
  3. add a build artefact of type jar. You should see something like

    Intellij include src files in jar file

  4. Now in the build menu option you can build the jar.


Navigate as follows :

(i) Go the "File" in the Top Menu Bar

(ii) Select "Project Structure" from the File Menu

(iii) Select "Artifacts" in Project Settings

(iv) Select "Output Layout"

(v) Click on "+" , select "Directory Content" from the dropdown and choose "src" folder from the directories.

0

精彩评论

暂无评论...
验证码 换一张
取 消