fra
fra

Reputation: 11

Configuration Preprocessor and conditional statements

I am trying to set a conditional statement to use an attribute depending on its value. I am not sure ccnet-config supports conditions

For example:

<cb:define project-name="$(name)" />
<cb:if test:"$(project-name == '')">
    <cb:define project-name="$(name)" />
</cb:if>

Upvotes: 1

Views: 739

Answers (2)

jlew
jlew

Reputation: 10591

1.6 support this, and a few other new constructs (see the preprocessor documentation, new features are towards the bottom)

Upvotes: 1

Aaron Jensen
Aaron Jensen

Reputation: 26769

The CruiseControl.NET pre-processor, as of version 1.5, doesn't support conditional statements, so this is not possible.

Upvotes: 1

Related Questions