You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Rob Wilkerson <r....@gmail.com> on 2006/08/26 13:19:10 UTC

Re: SVN checkout using ant

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 <sm...@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

Re: SVN checkout using ant

Posted by Tony Morris <tm...@tmorris.net>.
I have a sample build file handy:
http://projects.tmorris.net/build/jar/trunk/build-jar.xml
See the get-dependencies target where javasvn is placed in the classpath
and the tag-artifacts target where it is used.

Tony Morris
http://tmorris.net/

> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org