Any idea how I would find out what version of CCNet supports the
buildArgs tag for the nant config block?
I think it would allow me to pass a define for a property to nant.
<buildArgs>"-D:Versioning.TwoPartVersion=&MajorVersion;"</buildArgs>
I'm not sure if I'm doing it right or not, but I am using v1.0 of
CCNet, and I'm afraid to upgrade since I don't wanna break my CI
Factory setup.
This is the regex I used, if anyone in the future has this problem:
<regex pattern="(?'regexTwoPartVersion'\d*\.\d*)" input="$
{CCNetLabel}"/>
-Aaron
On Apr 8, 2:41 pm, Ruben Willems <[email protected]> wrote:
> Hi
>
> for the moment there is no such way
> but that major version property can it be derived from CCNetLabel?
>
> suppose CCNetLabel is DailyBuild 2.4.5.6
>
> is your major label maybe something like 2.4 ?
> if so, you could use some scripting in Nant to calculate it
>
> with kind regards
> Ruben Willems
>
> On Wed, Apr 8, 2009 at 8:35 PM, Snozz <[email protected]> wrote:
>
> > Is there a way to have CCNet pass additional properties to my nant
> > scripts, beyond these defaults?
>
> >http://confluence.public.thoughtworks.org/display/CC/Properties+Passe...
>
> > In my nant scripts I want to have a major version property that is a
> > two part version number. I can't use CCNetLabel for this because I
> > want my CCNetLabel to be a four part version number, and sometimes
> > with a suffix.
>
> > I could just declare the property directly in my nant scripts, but
> > then I'd have two places where it'd need to be edited, because it's
> > also getting declared as a prefix for the label in the ccnet config.
> > The developers who will maintain this will surely forget that it has
> > to be changed in two places.
>
> > Thanks.