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方法
博客围绕APACHE的ECS包展开,指出用其画出的页面难看。介绍了解决方案,可在ecs.properties文件中设置pretty print属性,可自定义jar包替换文件或用系统属性指定自定义文件,还需将ecs.jar包中ecs.properties的pretty_print=false改为true,且最新版本更改了ECSDefaults类。
5073

被折叠的 条评论
为什么被折叠?



