[Anthill] Anthill ${version} property

rhonda.brown at lynx.co.uk rhonda.brown at lynx.co.uk
Thu Apr 29 05:57:31 CDT 2004


Hi
   

I have read that the ${version} property is made up of <prefix> <buildNo> <postfix>.  Is there a way of just extracting the <buildNo> from this property to tag certain source files?
   

I have used the property ${version} to tag the files as seen below in the build file:
   

<cvs command="tag ${build.type}_release_${version}_repository_${build.number} ${repository.home}" cvsroot="${cvs.connection}"/>
   

The build is successful, except it is not tagging any of the files as expected.  I have checked the build log and found the following message:
   

cvstag:
     [echo] build.number=120
      [cvs] cvs [tag aborted]: tag `Ver_release_1.0.4187_resources_120' must not contain the characters `$,.:;@'
   

   

Is there any way to get the last 4 digits from the version number as it does not allow any form of punctuation to separate the numbers?
   

Thanks in advance
   

Rhonda
   

   



This message is intended only for the use of the person(s) ("The intended
Recipient(s)") to whom it is addressed.  It may contain information which
is privileged and confidential within the meaning of applicable law.  If
you are not the intended recipient, please contact the sender as soon as
possible.  The views expressed in this communication are not necessarily
those held by LYNX Express Limited.



More information about the Anthill mailing list