Build and Version Numbering for Java Projects (ant, cvs, hudson)
For several of my projects I capture the subversion revision number, time, user who ran the build, and some system information, stuff them into a .properties file that gets included in the application jar, and read that jar at runtime. The ant code looks like this: <!– software revision number –> <property name=”version” value=”1.23″/> <target … Read more