I am trying to make use of the PreProcessor, following the example on
http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor
When I try to validate I get the following error (that I'll have to
type out because there's no handy copy error option!)

An unexpected error has occurred while loading the configuration!
Unexpected value type 'XPathArrayIterator' while processing value for
'CITrigger' [ApplicationException]
  at
ThoughtWorks.CruiseControl.Core.Config.Preprocessor.Utils.ThrowAppException
(String fmt, Object[] args)
  at
ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessorEnvironment.eval_text_constant
(String name)
 at
ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessorEnvironment.<>c__DisplayClass1.<eval_text_constants>b__0
(Match match)

... etc

This is the config I'm trying to validate
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
    <cb:define WorkingDirectory="W:\CCWorkingDirectory\"/>
    <cb:define SvnExecutable="C:\Progra~1\Visual~1\bin\svn.exe" />
    <cb:define BaseTrunkUrl="https://cibuild:8443/svn/"; />
    <cb:define BuildScriptsDir="W:\CCBuildScripts\" />
    <cb:define XmlLoggerDir="W:\CCLogs" />
    <cb:define name="CITrigger">
        <triggers>
            <intervalTrigger name="continuous" seconds="30"
initialSeconds="80" />
        </triggers>
    </cb:define>

    <cb:define name="OurProject">
        <project name="$(ProjectName)">
         .... removed for brevity ...
          $(Trigger)
        </project>
    </cb:define>

    <cb:scope ProjectName="CodeOfPracticeDev"
ProjectFile="CodeOfPractice.sln" Trigger="$(CITrigger)">
        <cb:OurProject />
    </cb:scope>

Reply via email to