You can also pass arguments inside the ant task
<arg value="-J-Dhttp.proxyHost=your.proxy.here"/> <arg value="-J-Dhttp.proxyPort=##"/>
If you go on an offline route. Download the package list by going to the Java API URL ( http://java.sun.com/j2se/1.5.0/docs/api/package-list ) and save it as a text file, and then use this ant.
<javadoc sourcepath="${source}" destdir="${doc}"> <link offline="true" href="http://java.sun.com/j2se/1.5.0/docs/api/" packagelistloc="path-containing-package-list"/> </javadoc>
source share