如何改变ECS画出的标签?

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方法

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值