how to implement a build number

I would like to have an automatic build number in my UDS distribution tar.file. This number should be automatically incremented with every build.

This number will tag the distribution and should also be accessible in the deployed application, so I can ask the application which build it is.

How did you implement this functionality?

Thanks for your help.

[379 byte] By [utnapishtim] at [2007-11-26 7:11:01]
# 1

You can use FScript. It requires some scripting, but it works. The process is:

- Declare a project constant called VERSION = 1

- During build, checkout the constant using FScript

- Export the constant

- Change the value of the constant to match your build number

- Import the constant

- Continue the build

Hope this helps...

JJ

JohnJacobs at 2007-7-6 16:03:59 > top of Java-index,Application & Integration Servers,Integration Servers...