Exactly.

In CI Factory's Entities.xml I have declared a MajorVersion entity
which would be '2.4'
I then declare the LabelPrefix as '&MajorVersion;.'
So I was hoping to pass the MajorVersion by itself as a property, to
avoid parsing.

I think it should be easy with a regex nant task though.

Thanks.

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.

Reply via email to