svn checkout is not working with build.xml -
i want checkout code (tortoise) svn folder other working directory.
build.xml follows:
<?xml version="1.0"?> <project name="svn-test" basedir="." default="checkoutthis"> <property file="build.properties" /> <path id="project.classpath"> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\jsvn-0.9-dev.jar" /> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\commons-lang-2.3.jar" /> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\jakarta-regexp-1.3.jar" /> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\svnant.jar"/> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\svnclientadapter.jar"/> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\svnkit.jar"/> <pathelement location="c:\program files\apache-ant\ant-1.8.2\lib\svnjavahl.jar"/> </path> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpath="c:\program files\apache-ant\ant-1.8.2\lib\svnant.jar;c:\program files\apache-ant\ant-1.8.2\lib\svnclientadapter.jar;c:\program files\apache-ant\ant-1.8.2\lib\svnkit.jar;c:\program files\apache-ant\ant-1.8.2\lib\svnjavahl.jar" /> <target name="checkoutthis"> <svn username="sss" password="sss"> <checkout url="https://svn.strobilanthes.com/svn/nutanstplus/" revision="head" destpath="sample_svn" /> </svn> </target> <target name="build" depends="checkoutthis"> <description>main target</description> </target> </project>
when run build.xml showing :
e:\ant-for-example>ant buildfile: e:\ant-for-example\build.xml checkoutthis: [svn] <checkout> started ...
but not copy files in folder.
try adding before "taskdef"
<taskdef name="svn" classname="org.tigris.subversion.svnant.svntask" classpathref="project.classpath"/>
Comments
Post a Comment