Thursday, June 09, 2005

Checkout codes from subversion using Ant 1.6.2

Below is a target that you could add to your ant build.xml file to checkout codes automatically from subversion (svn). I had a lot of trouble finding the svnant.jar file necessary for this target so i thought i could share it online with others.

<target name="checkout" depends="init">

<taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask"/>


<svn username="javed"

password="pass">

<checkout url="http://10.12.5.19/svn/MyRepository/trunk" destPath="${basedir}"/>

</svn>


</target>



Do add the svnant.jar to your ANT_HOME/lib directory.

Category: ,,

No comments: