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
2009-10-01 19:30:49
That's the answer. +1
The Chairman
2009-10-01 19:33:22
@Dustin: do cb:define tags need to be at the root of the document or can they occur anywhere?
minty
2009-10-01 19:35:01
They can be anywhere. However, I believe that they need to occur before the first use of the property that you are defining.
Dustin
2009-10-01 19:37:19