开发者

Configuration Preprocessor and conditional statements

开发者 https://www.devze.com 2022-12-15 14:20 出处:网络
I am trying to set a conditional statement to use an attribute depending on its value. I am not sure ccnet-config supports conditions

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 ==开发者_C百科 '')">
    <cb:define project-name="$(name)" />
</cb:if>


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消