API 不推荐报告转换 Ant 任务

用途

此任务将 apitooling.apideprecation Ant 任务所创建的 XML 报告转换为 HTML 文件。

用法

描述

Ant 任务的名称为 apitooling.apideprecation_reportconversion。 要使用 JAR 文件 apitooling-ant.jar,此文件必须在 Ant 类路径上。

<apitooling.apideprecation_reportconversion
	xmlfile="..."
	htmlfile="..."
	debug="..."
/>

参数

属性 描述 是否必需
xmlfile 此属性指定要转换的 XML 文件所在的位置。

使用绝对路径来指定此位置。
是
htmlfile 此属性指定要生成的 HTML 文件所在的位置。
如果省略了此属性,那么 HTML 文件名将是所给定的 XML 文件名,但是但是其扩展名会替换为 html。

使用绝对路径来指定此位置。
否
debug 设置调试值。

此属性的值可为:true 或 false
缺省值为 false。
否

示例

 <apitooling.apideprecation_reportconversion
  xmlfile="/eclipse/deprecation/deprecation.xml"
  debug="true"

 />

这将运行在 /eclipse/deprecation 文件夹中创建 deprecation.html 文件的任务。

如果启用了调试,那么某些调试跟踪将显示在 Ant 控制台中。

相关参考

分析 Ant 任务
文件生成 Ant 任务
API 使用 Ant 任务
API 冻结 Ant 任务
API 不推荐 Ant 任务
分析报告转换 Ant 任务