svntask is a very simple solution for using svn from ant. It provides an easy way to get the svn revision number from ant.