Search code examples
javajavadoc

supplying javadoc in "class only" jar file


I am distributing jar file for client as an API jar. I DON'T want them to see my source code (and say 'your code sucks'), but I want them to be able to see the docs (comments /** */ ?).

Am I right that I must supply a separate doc.jar file as well as the "class only" distribution jar file?

Is there anyway to 1. combine them together and 2. let eclipse automatically found the docs without setting the doc location manually?

Thanks a lot.


Solution

  • Just run Javadoc and create a separate .zip file of it.