How should one distribute the Javadoc for a Library?

后端 未结 3 1283
一向
一向 2021-02-05 07:32

I am writing a custom library. It\'s build into a .jar archive. I am fully able to generate the javadoc, but I don\'t know how I should distribute it?

  1. Put it in th
3条回答
  •  感动是毒
    2021-02-05 07:58

    I'd include the library .jar and the documentation and other things, like a README, License file etc. in a single archive (zip or tar.gz)

    mylib-1.0.1.tar.gz , which contains:

    mylib-1.0.1/
               ├── javadoc
               │   └── index.html  (and all other javadoc files under here)
               ├── mylib-1.0.1.jar
               └── README
    

    Instead of the expanded javadoc/ sub directory within the archive, you could add the compressed javadoc in a mylib-1.0.1-javadoc.jar (or zip) , both options are common.

    mylib-1.0.1/
               ├── mylib-1.0.1-javadoc.jar
               ├── mylib-1.0.1.jar
               └── README
    

提交回复
热议问题