views:

294

answers:

1

In ant scripts and MS build files you can set properties at the top how do I do this in the CruiseControl file ccnet.config?

+6  A: 

You can do this with cb:define. For example:

<cb:define myProjectName="Foo"/>

Then to use the defined property:

<project name="$(myProjectName)" queue="Bar"> </project>

More information about cb:define can be found here:

http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor

Dustin
That's the answer. +1
The Chairman
@Dustin: do cb:define tags need to be at the root of the document or can they occur anywhere?
minty
They can be anywhere. However, I believe that they need to occur before the first use of the property that you are defining.
Dustin