How can I use the -source 1.4 in ANT with JUnitDoclet?
The documentation of ANT 1.5 says, that the source option of the ANT task is not used with custom Doclets. (If you set -source 1.4 you make javadoc aware of the assert statement.) JUnitDoclet does not require this information, but javadoc itself does (not just the Standard Doclet as the ANT folks guessed). Please include -source 1.4 as part of additionalparam.