1

有人可以告诉我或指向一些有关 Checkstyle 自定义检查和访问属性值的文档吗?

我的自定义类需要获取用户提供的正则表达式文件。他们可以将此文件作为 Checkstyle .xml 配置文件中的属性提供吗?如果是这样,我的自定义 Check 类如何读取属性的值?

谢谢。

4

1 回答 1

1

I found a way around this problem. Just set a java Property using -Dpropertyname=propertyvalue, then in the custom class get the property value.

于 2012-07-03T19:03:38.407 回答