Make your own free website on Tripod.com

Content:

Home

AutoVersionGenerator

What's it?

This small programm creates a Java file that contains the build count, a minor and major version, the program name and the compile time. After each run of the software, this information will be updated.

This software is freeware.

How to use it?

Unzip the archive and start the program with java -jar AutoVersionGenerator. It will create the file AutoVersionS.java, that can be edited by yourself. Please update the Application name and the version information after the first run.

Every additional run will update the build information of this file by incrementing it by one. If you call the programm with java -jar AutoVersionGenerator -incrementMinorVersion, it will also increment the minorVersion counter. It is usefull to do this after every released version.

The major version can only be changed by editing the file manually. You should also reset the minorVersion.

If you specify the parameter -class , the javafile is specified by classname. If it contains a package name, the file will be stored in the packages path and an package statement will also be generated.

Another file is in the package: AutoVersionM.java. This class is derived from AutoVersionS.java and is not changed by AutoVersionGenerator. It provides methods to format the version data. Sample formats for a program named MyProg, a major version 2, a minor version 3 and a build version 323:

  • MyApp v2.3
  • MyApp v2.03
  • MyApp v2.03.0323
Please look in into the code of AutoVersionM.java for details.

If you have specified a package name, you have to edit AutoVersionM.java to put it into the same package as the generated class or import it's package.

Download

Sourcecode and Executable

Michael Habermann