Skip to main content

Posts

Showing posts with the label javacvs

Automated release tagging with ANT

Sometime back I was researching how to automatically tag a CVS snapshop from an ANT script. Yes, I know this should be a basic thing :-) But for some reason, IT has always taken care of tagging and creating builds. Whenever I needed to release some code, I would tag the CVS snapshot from Eclipse, I would manually creat a MANIFEST.MF file, and then create the distributable. However, this time I tried to automate the task with an ANT script. What I needed was an ANT script which would automatically create a MANIFEST.MF file with a release number, and tag the CVS project with that release number. The first thing I came across was the Ant cvs task . This task allows us to run any CVS command on a repository. However, there is a catch. You need CVS installed on your local machine for this to work. Under the hoods the CVS task invokes cvs.exe (on Windows), or cvs on *nix machines. This was a clear show stopper. I did not want to make all developers install CVSNT on their development mach...