I mabe didn't understand your point but what do you mean "versrsion
number in a Java class"?
In my code I have a couple of [public static final String] objects that
store a package (software) number. During building (before compilation)
I replace their value to the current build number. There is a task
PROPERTYFILE that allows you to read a property  file and chagne its
value according to your logic (though on a very primitive level). By
these two acts I achieve all I need regarding vversion number
identification. 

If I miss something pls. explain.

RR

> -----Original Message-----
> From: Ryan Grier [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 21, 2003 5:20 AM
> To: [EMAIL PROTECTED]
> Subject: New Ant Task
> 
> 
> Hello all,
> I believe I may have a nice little tool which may come in 
> handy for some people; at least I hope it does. 
> 
> The goal of this task was for me to have Ant take care of 
> both the build number and the version number in my software. 
> I could have just used a build in task to take care of build 
> number increments. This would be fine, if I didn't use a 
> special pattern for build numbers.
> 
> To my knowledge, there is no build in Ant task that will 
> update a version number in a Java class for me. With this 
> being said, i decided to do it myself. I'm not sure if these 
> Ant tasks will be helpful to anyone.
> 
> If anyone has any comments, suggestions, gripes, complaints, 
> please let me know. The task is a fairly simple one. I wrote 
> it for myself and I figured I would give it to anyone who 
> would want it.
> 
> Ryan 
> 
> 
> Task Name: Version_Tool
> Description: The goal of this task was for me to have Ant 
> take care of both the build number and the version number in 
> my software. I could have just used a build in task to take 
> care of build number increments. This would be fine, if I 
> didn't use a special pattern for build numbers.
> 
> Compatibility: This has been tested on 1.5.1 
> URL: http://ant.ryangrier.com/
> License: BSD License
> 
> 
> 
> <subsection name="Version_Tool">
>       <p>A versioning tool for Ant.</p>
>           <table>
>               <tr>
>                       <th>Compatibility:</th>
>                       <td>Ant 1.5.1</td>
>                       </tr>
>               <tr>
>                       <th>URL:</th>
>                       <td><a 
> href="http://ant.ryangrier.com/";>http://ant.ryangrier.com/</a></td>
>               </tr>
>               <tr>
>                       <th>Contact:</th>
>                   <td><a 
> href="mailto:[EMAIL PROTECTED]";>version_tool@ryangrie
> r.com</a></td>
>               </tr>
>               <tr>
>                   <th>License:</th>
>                   <td>BSD</td>
>               </tr>
>       </table>
> </subsection>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to