I am trying to display the SVN revision number using
Ant build system. I have tried to use svntask. However, it gives me the revision of the current directory. I would like to default it to the base directory, I've attached the code snippet:::::
target name="version">
<typedef resource="com/googlecode/svntask/svntask.xml">
<classpath>
<fileset dir="${srcdir}/CAMViewerEar/lib">
<include name="svnkit.jar"/>
<include name="svntask.jar"/>
</fileset>
</classpath>
</typedef>
<svn><info path="." revisionProperty="revisionVersion" /></svn>
<property name="revision" value="${revisionVersion}" />
<echo message="revision number is : ${revision}" />
</target>
Any help is appreciated, TIA