使用 XSLTLogPublisher 更改巡航控制日志
我们从 CruiseControl 构建我们的项目。 我们有一个运行一些 exec 命令的 ant 脚本,其输出被放置在该消息的 CDATA 部分中,并且其优先级设置为“info”。
现在我创建了一个 XSL,它根据 CDATA 输出修改此优先级,因此它创建了一个我希望 CruiseControl 使用的新日志文件。
我试图通过使用像这样的 XSLTLogPublisher 标签来做到这一点,
<xsltlogpublisher directory="${log.dir}" outfilename="${logname}" xslfile="${transform}" />
但它似乎不起作用。 Cruisecontrol 没有记录任何错误,日志文件中也没有进行任何更改,可能是 Cruisecontrol 在转换其自己的日志时出现问题,或者在实际日志发布为网页后是否调用了发布者?
任何人都可以为我的问题提供某种解决方案吗?
有什么方法可以更改 Cruisecontrol 使用的日志文件吗?
是否可以通过 ANT 脚本更改日志文件?
We build our project from CruiseControl.
We have a ant script running some exec commands, and the output of this is placed in the CDATA part of that message, and its priority is set to "info".
Now I have created an XSL that modifies this priority depending on the CDATA output, so it creates a new logfile that I want CruiseControl to use.
I tried to do this by using XSLTLogPublisher tag like this
<xsltlogpublisher directory="${log.dir}" outfilename="${logname}" xslfile="${transform}" />
But it doesn't seem to work. No error is logged from cruisecontrol no changes are done in the log file, might it be that cruisecontrol have problems transforming its own log, or are the publishers invoked after the actual log is published as a web page?
Can anyone provide some sort of solution to my problem?
Are there any way to change the log file cruisecontrol uses?
Would it be possible to alter the log file from the ANT script instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CruiseControl 配置元素称为
。您有
。这是 SO 中的拼写错误还是您的配置中的拼写错误?编辑:
不接受名为“outfile”的属性。似乎有“outfilename”代替。又是一个拼写错误吗? :)The CruiseControl configuration element is called
<xsltlogpublisher>
. You have<xsltlogtransform>
. Was it a typo here in SO or in your configuration?EDIT:
<xsltlogtransform>
doesn't accept an attribute called 'outfile'. There seems to be 'outfilename' instead. Is it again a SO typo? :)