[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN checkout using ant

From: Rob Wilkerson <r.d.wilkerson_at_gmail.com>
Date: 2006-08-26 15:19:10 CEST

Sorry for the direct response. I forget that I need to reply to all
on this list. Here's my response for the list:

Hey Muthu -

I have the svn command line tools installed, so I don't know much
about javahl, but svnant works great for me. I don't have a sample
build file handy, but I'll be happy to paste one later this weekend if
you'd like.

If you don't have them installed, try installing svn locally to take
advantage of the command line and see whether that makes any
difference.

On 8/26/06, Muthu <smswamy@gmail.com> wrote:
>
> Hi,
> I want to checkout from a svn repository using ANT1.6.5.The following
> is the source code and error i got.I have placed all the required jars in
> the location.Will you please someone help it out.Thanks in advance.
>
> Source:-
> <project name="Example" default="doMain">
> <!-- path to the svnant libraries. Usually they will be located in
> ANT_HOME/lib -->
> <path id="project.classpath">
> <pathelement location="${svnjavahl.jar}" />
> <pathelement location="${svnant.jar}" />
> <pathelement location="${svnClientAdapter.jar}" />
> </path>
>
> <!-- load the svn task -->
> <taskdef resource="svntask.properties"
> classpathref="project.classpath"/>
> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
>
> <!-- all properties are in build.properties -->
> <property file="build.properties" />
>
> <target name="doMain">
> <echo message="Hi"/>
> <runtarget target="doCheckout"/>
> </target>
>
> <target name="doCheckout">
> <svn username="${user.id}" password="${password}">
> <checkout url="${url}" destPath="temp" />
> </svn>
> </target>
>
> </project>
>
>
> Error:-
> C:\ANT\svnant-1.0.0>echo off
> Environment variable the not defined
> Buildfile: build.xml
>
> checkoutThis:
>
> BUILD FAILED
> C:\ANT\svnant-1.0.0\build.xml:30: Cannot use javahl nor command line svn
> client
>
> Total time: 0 seconds
>
> Thanks,
> Muthuswamy.S
> --
> View this message in context: http://www.nabble.com/SVN-checkout-using--ant-tf2169024.html#a5997119
> Sent from the Subversion Users forum at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

-- 
Rob Wilkerson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 26 15:20:15 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.