现在的位置: 首页 > 综合 > 正文

如何改变ECS画出的标签?

2013年08月22日 ⁄ 综合 ⁄ 共 643字 ⁄ 字号 评论关闭

TAG的描述语言往往选择的是APACHE的ECS包,而在用ECS画出的页面往往总是很难看,来我们看看他们的邮件列表

On Thursday, November 15, 2001, at 08:59 PM, McDowell, Mark wrote:

> Is there a way to have pretty print set to true by default?  I want
> it on for all my objects...

hi mark
you can set the pretty print property in the ecs properties file you used.
you can either roll your own custom jar, replacing the ecs.properties file
with your custom one (this will change your defaults) or you can specify a
custom ecs properties file using the ecs.properties system property.

see the javadocs for org.apache.ecs.ECSDefaults for more details.

- robert

ok!这就是解决方案了!不过需要你修改ecs.jar包中的文件ecs.properties将

pretty_print=false 更改成 pretty_print=true

就是这些,不过最新的ECS版本似乎已经更改了ECSDefaults这个类,增加了本应改有的setXXX方法

抱歉!评论已关闭.