Version tagging CVS repository files from Java or ANT
Let me give you the rundown first:
- Our code is stored on remote CVS repository. (Accessed from Eclipse IDE)
- Each person on the team can check out a project, compile a product release locally (using an ANT built script) and distribute it to a file server.
At the moment, after building a new release, we have to manually update the Version tags on the CVS repository to match the newly released build. We do this in Eclipse by right-clicking on the project root > Team > Tag as Version.... and then typing in the incremented version number.
I would like to automate this so that after a new release is built, the new version number is automatically applied to files on the CVS repository. An ANT script solution or Java coded solution (defined as an ANT task) will do.
I have spent hours searching forums for a solution but nothing matches my exact problem. I have looked at both JCVS and Netbeans' JavaCVS but they seem to be orientated more towards a GUI than allowing their classes to be used for a single tag-as-version command. PLEASE HELP!