A javadoc command automatically inserts a comment stating something like:
<!-- Generated by javadoc (build 1.6.0_17) on Thu Apr 07 18:32:31 CEST 2011 -->
in every generated HTML file.
This is quite preventing change tracking for versioned javadoc, since every file will be modified when regenerating the doc.
A previous question I asked convince me not to version any javadoc, but it also raised this problem and the question remains: is there a way to get rid of this comment? I did not find trace of such possibility in the javadoc options.
Thank to JackMc's comment, I found the command line parameter -notimestamp
. It works (at least for my 1.6.0_20 here).
If using ant, you'll have to add it to the <javadoc>
task using either the <arg value="-notimestamp" />
nested element or an additionalparam="-notimestamp"
attribute.
(I just used this for my github-managed JSch documentation..)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With