[英]JDepend ant taskdef example?
I am examining some java static analysis tools. 我正在研究一些Java静态分析工具。
findbugs, checkstyle, javancss, pmd and jdepend. findbugs,checkstyle,javancss,pmd和jdepend。 A previous stackoverflow question regarding tool recommendations Static Analysis tool recommendation for Java?
有关工具建议的先前stackoverflow问题,Java的静态分析工具建议?
My problem, the only tool I am having an issue with running is jdepend. 我的问题是,与运行有关的唯一工具是jdepend。 The homepage is http://clarkware.com/software/JDepend.html .
主页是http://clarkware.com/software/JDepend.html 。
I have followed the installation instructions and I have tried the example target. 我遵循了安装说明,并尝试了示例目标。 But it did not work for me.
但这对我没有用。 Listing missing jars.
列出缺少的罐子。
Regardless of it working or not. 无论它是否工作。 I would prefer to have a taskdef, defining classpath, and classname.
我希望有一个taskdef,定义类路径和类名。 I cant find an example of this.
我找不到这个例子。 Does anyone have a working example of this?
有人有这个可行的例子吗?
Usually, a static tool (a jar file, example findbugs.jar) has a taskdef (FindBugsTask) inside. 通常,静态工具(一个jar文件,例如findbugs.jar)内部具有taskdef(FindBugsTask)。 When you declare the taskdef in ant build.xml file, the jar file (findbugs.jar) is found and run.
在ant build.xml文件中声明taskdef时,将找到并运行jar文件(findbugs.jar)。
But, with jdepend: 但是,使用jdepend:
It's mean that, you must include jdepend.jar into CLASSPATH 这意味着,必须将jdepend.jar包含在CLASSPATH中
2 Solutions: 2个解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.