【发布时间】:2015-07-12 23:37:49
【问题描述】:
我正在使用 CheckStyle 工具为 java 项目生成一些报告。另外,我正在使用这个命令(从 sh 脚本中提取)
java -jar ./utilJars/checkstyle-6.5-all.jar -c ./sun_checks.xml -f xml $p >> "$DEST_FOLDER/$REPORT_FILE"
它工作正常,它会生成一个 xml 报告。现在,我还需要一份 html 报告。我一直在看他们的网站,但我发现的只有这一行:
Command line usage:
-f format - specify the output format. Options are "plain" for the DefaultLogger and "xml" for the XMLLogger. Defaults to "plain".
我想一定有一种方法可以在不手动解析xml报告并逐步构建html文件的情况下获得html报告。有什么想法吗?
【问题讨论】:
-
你会使用 Maven 还是 Ant?
标签: java checkstyle