[NAnt-users] Help with testing strings

2011-11-02 Thread Chris Fouts
I'm using ccnet and Nant, not a unique situation. How can I test the passed-in CCNetBuildModification string in Nant so I can do the following pseudo-code If ${CCNetBuildModification} == ForceBuild property name=someTarget value=someTarget1 / Else property name=someTarget

Re: [NAnt-users] Help with testing strings

2011-11-02 Thread Chris Fouts
Sorry, CCNetBuildCondition --- I'm using ccnet and Nant, not a unique situation. How can I test the passed-in CCNetBuildModification string in Nant so I can do the following pseudo-code If ${CCNetBuildModification} == ForceBuild property

Re: [NAnt-users] Help with testing strings

2011-11-02 Thread Christopher Brandt
You'd use conditional property assignment. First set the default property value, then conditionally re-assign it if your condition is met. So: property name=some.target value=some.target2 / property name=some.target value=some.target1 if=${CCNetBuildCondition == 'ForceBuild'}/ --- X Continuous