Automatically generating source and doc jars in Netbeans

后端 未结 3 1205
广开言路
广开言路 2020-12-31 09:17

Is there a way to automatically generate source and javadoc jars in Netbeans? Ideally I would like to place jars of my source and JavaDoc in the dist folder each time i buil

3条回答
  •  长情又很酷
    2020-12-31 09:30

    I tried the following on NetBeans IDE 7.2 and it works (assuming that the project name is MyProject)

    1. go to the MyProject directory

    2. open build.xml file in a text editor

    3. add the following lines under the line :

    4. go to nbproject folder and open the project.properties file in a text editor

    5. edit the name of the output binary file (set to the project name.jar by default): # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/**MyProject-binaries**.jar

    6. save and build project.

    Hope it works with you too.

提交回复
热议问题