Right now my ant task looks like.
<javadoc sourcepath='${source}' destdir='${doc}'> <link href='http://java.sun.com/j2se/1.5.0/docs/api/' /> </javadoc>
And I’m getting this warning:
javadoc: warning - Error fetching URL: http://java.sun.com/j2se/1.5.0/docs/api/package-list
How do I get the javadoc to properly link to the API? I am behind a proxy.
You probably need the http.proxyHost and http.proxyPort system properties set. For example,
ANT_OPTS='-Dhttp.proxyHost=proxy.y.com' ant docAlternatively, you could set the ‘offline’ flag and provide a package list, but that could be a pain for the Java core.