What is a good way to handle a version number in a Java application?

前端 未结 6 853
[愿得一人]
[愿得一人] 2020-12-23 10:25

I am developing a desktop app using Java and Swing Application Framework. I have an application about box and I\'d like to have that box contain some indication of what ver

6条回答
  •  被撕碎了的回忆
    2020-12-23 10:55

    Since I'm using cruise control and Ant to build everything, I ended up at least for now, using the ${label} property passed into the ant call for building the project. In my ant file, I use the Ant "replace" task to change the properties file that holds the about box resource named Application.version to include that label.

    I'm planning to change from the label incrementer to the svn label incrementer and then use the svn revision number that way. Its just a little more work and it requires that I make changes to the cruise control config file.

提交回复
热议问题