You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "T8, JON STRAYER" <js...@sbc.com> on 2004/05/23 23:04:34 UTC

Version numbers

Does anyone have a jelly tag that will take a version number like 1.2.3.4
and increment a given portion of it?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Version numbers

Posted by Eric Giguere <er...@videotron.ca>.
Hi
Try the ant buildnumber tag.
It doesn't provide support for full version number but appending a build 
value to your version number does the trick in many circumstances.

An example :

  <buildnumber file="mybuild.number"/>

This tag will locate the specified file, read the value in it and 
rewrite after adding 1.
I guess by combining multiple files and the call to the right one when 
incrementing your version could also be a possible solution.

Hope it helps.
Eric


T8, JON STRAYER wrote:

>Does anyone have a jelly tag that will take a version number like 1.2.3.4
>and increment a given portion of it?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org