[Anthill-pro] Making the Anthill build number value available
to Ant build files?
Eric Minick
etm at urbancode.com
Fri Dec 29 13:19:25 CST 2006
Paul,
The anthill.version property was automatic in Anthill version 2. There
were a number of automatic properties in place but adding new ones or
changing the names of the automatic ones was difficult. In 3.0 we
changed it to have no automatic properties, but relatively easy addition
of new properties. You can name the property whatever you want, but to
pass the latest stamp value in to that property you'll need the
${bsh:WorkspaceVersion.get()) construct.
Regards,
Eric
Paul Furbacher wrote:
> Eric,
>
> Thanks.
>
> On Dec 28, 2006, at 8:48 PM, Eric Minick wrote:
>
>> I'm noting that you listed AnthillPro v3
>
>
> Yes, AnthillPro v3
>
>> -Danthill.version.number=${bsh:WorkspaceVersion.get()}
>
>
> Is this necessary only if I declare a property with the name
> "anthill.version.number"?
>
> From the other post in this thread, it would appear that there is
> already a property
> named "anthill.version" which I can use, as in
>
> <manifest ... >
> <attribute name="build.number" value="${anthill.version}" />
> ...
> </manifest>
>
> Is that right?
>
> If so, I would declare the "anthill.version" property at the top of a
> build.xml file
> as a stand-in to be overridden in the actual build but which would
> allow me
> to do development builds outside of Anthill.
>
>> [...] a common model is to have:
>>
>> <property name="anthill.version.number" value="dev" />
>
>
> <property name="anthill.version" value="dev" />
>
>
> Thanks for the info.
>
>
> Paul Furbacher
>
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
More information about the Anthill-pro
mailing list