gpt4 book ai didi

java - 如何编写命令行脚本(不是 ant 任务)来生成 checkstyle 报告?

转载 作者:行者123 更新时间:2023-11-30 11:53:14 28 4
gpt4 key购买 nike

我学会了如何编写一个 ant 任务来生成类似 this 的报告但我只想使用命令行脚本而不是 ant 来生成它。我该怎么做?

最佳答案

Checkstyle 的发行版包括 command-line interface .如果您不能使用 Ant 任务,那可能是下一个要考虑的选项。

Run checkstyle with configuration file docs/sun_checks.xml on all java files in a directory

java
com.puppycrawl.tools.checkstyle.Main
-c docs/sun_checks.xml
-r src/

关于java - 如何编写命令行脚本(不是 ant 任务)来生成 checkstyle 报告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6417134/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com