Inserting link to a file

I'd like to have a word in the Javadoc footer be a hyperlink that opens a HTML file. However, my problem is to with relative/absolute links. I can't make this an absolute link since I don't know where the user will unpackage the Javadoc files to. Neither can I make it relative, since the HTML file could be in the same or different directory to the file containing the hyperlink (since the Javadocs are in a hierarchy of directories). Anyone have any ideas?

Thanks,

Paul.

[501 byte] By [paulmoloney] at [2007-9-26 15:49:09]
# 1

The solution is to use {@docRoot}, which is a variable that represents the root of the api docs.

http://java.sun.com/j2se/1.4/docs/tooldocs/win32/javadoc.html#{@docRoot}

If you're using 1.4.0, unfortunately, there is a bug in {@docRoot} when moving up one directory:

{@docRoot}/..

This bug is described at:

http://developer.java.sun.com/developer/bugParade/bugs/4524350.html

with a workaround for fixing it in post-processing.

-Doug

dkramer at 2007-7-2 18:52:06 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...