Eclipse 使用Ant编译时,增加javadoc警告的最大数量

Eclipse 使用Ant编译时,增加javadoc警告的最大数量,eclipse,ant,java-8,javadoc,eclipse-mars,Eclipse,Ant,Java 8,Javadoc,Eclipse Mars,我最近将我的开发环境从Java7升级到Java8,现在发现了大量以前未发现的javadoc问题 默认情况下,Ant(通过EclipseMars调用)将其警告(我假设有错误)限制为100: 是否有任何参数可以强制Ant显示alljavadoc警告,而不是限制为100 我试图通过compilerarg元素使用-xmax1000参数,但Eclipse Mars(Ant 1.9.4)中的当前Ant版本似乎不支持compilerarg元素(它仅在中受支持): 结论:看来Antjavadoc任务是这里的限

我最近将我的开发环境从Java7升级到Java8,现在发现了大量以前未发现的javadoc问题

默认情况下,Ant(通过EclipseMars调用)将其警告(我假设有错误)限制为100:

是否有任何参数可以强制Ant显示alljavadoc警告,而不是限制为100

我试图通过
compilerarg
元素使用
-xmax1000
参数,但Eclipse Mars(Ant 1.9.4)中的当前Ant版本似乎不支持
compilerarg
元素(它仅在中受支持):


结论:看来Ant
javadoc
任务是这里的限制因素,如果它支持
compilerarg
标志,就可以调整错误和警告的限制。

正如您所指出的,
-Xmaxwarns
会影响
javadoc
程序输出的警告数量

-Xmaxwarns
可以通过嵌套的
元素传递给
javadoc
程序:

<javadoc ...>
    <arg value="-Xmaxwarns"/>
    <arg value="200"/>
</javadoc>

是ant还是javadoc限制了警告计数?您能从命令行运行javadoc吗?@Seelenvirtuose最终,javadoc将警告消息限制为100条。在通过Ant启动javadoc时,我一直在寻找一种控制这种情况的方法。这种方法非常有效。我不知道在ant中多个arg可以通过这种方式连接。
C:\>javadoc -X
  -Xmaxerrs <number>               Set the maximum number of errors to print
  -Xmaxwarns <number>              Set the maximum number of warnings to print

Provided by standard doclet:
  -Xdocrootparent <url>            Replaces all appearances of @docRoot followed

                                   by /.. in doc comments with <url>
  -Xdoclint                        Enable recommended checks for problems in javadoc comments
  -Xdoclint:(all|none|[-]<group>)
        Enable or disable specific checks for problems in javadoc comments,
        where <group> is one of accessibility, html, missing, reference, or syntax.

These options are non-standard and subject to change without notice.
<javadoc ...>
    <arg value="-Xmaxwarns"/>
    <arg value="200"/>
</javadoc>