Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to redirect links between multiple independently-built HTML Javadoc trees after installing them from independent products into arbitrary locations?

0
Posted

Is there a way to redirect links between multiple independently-built HTML Javadoc trees after installing them from independent products into arbitrary locations?

0

Let’s state the question a different way. Let’s say a user downloads the JDK and its javadoc-generated API documentation (set A). Next, the user downloads and installs a third-party product with its Javadoc-generated API documentation (set B) in a user-defined location. They would like the references from set B to point to set A. Currently, Javadoc can create links from set B to set A (using “Linking Documents” in the previous question) but they must be specified at Javadoc build time, and can only be either absolute (using http:// or file:/) or relative, but can’t use an environment variable that the user sets to redirect the links. This limitation is inherent in HTML, which does not allow environment variables in links. Some possible solutions or workarounds that we are aware of are: • Use relative links with -link or -linkoffline and require documentation set B to be located relative to set A (On Solaris, these can be non-relative locations provided you use a symlink to perform the

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123