CruiseControl的"未使用的节点检测到的QUOT;添加的xmlns到项目节点时出错 [英] CruiseControl "Unused node detected" error when adding xmlns to Project node

查看:184
本文介绍了CruiseControl的"未使用的节点检测到的QUOT;添加的xmlns到项目节点时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用巡航控制 preprocessor功能打破我的配置为更小的可重复使用的部分。我可以使用的功能,包括从大根CruiseControl的节点中,像这样:

I am trying to use the Cruise Control preprocessor functionality to break my configuration into smaller reusable sections. I can use the include feature great from within the root cruisecontrol node, like so:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
    <cb:include href="child.config" />
</cruisecontrol>

如果我尝试用另一种包括子配置中(如下所示):

If I try and use another include within the child config (like so):

<project name="TestProject" xmlns:cb="urn:ccnet.config.builder">    
    <cb:include href="grandchild.config" />
</project>

我收到以下错误:

I get the following error:

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException:未使用的节点检测:的xmlns:CB =金塔:ccnet.config.builder

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: Unused node detected: xmlns:cb="urn:ccnet.config.builder"

如果我删除的xmlns命名空间的语句,我得到这个错误,而不是:

If I remove the xmlns namespace statement, I get this error instead:

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException:配置文件包含无效的XML:E:\建立\ CONFIG \ AppRiver.Tools.BuildAutomation \ CruiseControl的\ ccnet.config ---> System.Xml.XmlException:CB '是一个未声明的命名空间。

ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: The configuration file contains invalid xml: E:\Build\Config\AppRiver.Tools.BuildAutomation\CruiseControl\ccnet.config ---> System.Xml.XmlException: 'cb' is an undeclared namespace.

最后,如果我删除了CBpreFIX上的标签,我得到这个错误

And lastly, if I remove the "cb" prefix on the tag, I get this error

Unused node detected:     Unused node detected: <define buildFile="CP.WEB.Dev.SanityCheck.CI.build" />

我的想法 - 任何帮助AP preciated

I am out of ideas - any help appreciated!

推荐答案

巡航控制系统抛出一个错误,如果是的xmlns放在项目的标签。这似乎是一个错误。我现在已经移出巡航控制系统和上哈德森,也很高兴。

Cruise Control throws an error if an xmlns is put on the project tag. This seems to be a bug. I have now moved off Cruise Control and onto Hudson, and very happy with it.

这篇关于CruiseControl的&QUOT;未使用的节点检测到的QUOT;添加的xmlns到项目节点时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆