Eclipse: Can a single JAR have more than one JavaDoc location?

I am using Eclipse 3.4.1.

Although this may seem odd, I want to be able to attach more than one JavaDoc to one JAR in an Eclipse project. This JAR has classes from two sets of JavaDocs. The reason for this is because it is an OSGi package that consists of a third-party JAR and some other third-party code on top of this JAR to make it work in OSGi.

If I have the source code for both packages and have this source code in an Eclipse project, it works fine. But I would like to be able to get this to work if I only have JAR and JavaDoc.

+3
source share
1 answer

, javadocs classpathentry .classpath ( )

javadoc, javadocs, .


( eclipse: )

:

, , Javadoc, .
com.apipackage, API com.spipackage, SPI (Service Provide Interface).
, docs/api/com/apipackage docs/spi/com/spipackage.
, API , SPI API, :

C:> javadoc -d ./spi -link ../api com.spipackage

, -link (docs/spi).

, javadoc , , javadoc... . http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkrelativeexample

+1

Source: https://habr.com/ru/post/1703045/


All Articles