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

AW: Using svnant tasks always ends with authorization errors

From: Spilker, Jörg - bhn <Spilker.Joerg_at_bhn-services.com>
Date: Mon, 22 Mar 2010 14:13:41 +0100


i finally found the solution.


has to be replaced by


Greetings, Jörg

-----Ursprüngliche Nachricht-----
Von: Spilker, Jörg - bhn [mailto:Spilker.Joerg_at_bhn-services.com]
Gesendet: Montag, 22. März 2010 11:25
An: users_at_subversion.apache.org
Betreff: Using svnant tasks always ends with authorization errors


i´ve some problems using the svn ant tasks. I´ve downloaded the latest svnant 1.3.x and setup a small eclipse project to checkout some sources from a repository.

However i always end up with the following error:

      [svn] <Checkout> started ...
      [svn] Authorization failed
      [svn] svn: OPTIONS of 'http://subversion.lenze.com/bms/dam/trunk/DocApp008_mp': authorization failed: Could not authenticate to server: rejected Basic challenge (http://subversion.lenze.com)
      [svn] <Checkout> failed !

I´m absolutely sure that i supplied the correct pw in the properties file. I can work with the commandline client, with Tortoise svn and with the subclipse eclipse integration using this user and pw. But not with svnant. Is there any debugging i could enable to find out more about the reason?


# -----------------------------------------------------------------------------
# build.properties
# This file is referenced by the sample build.xml file.
# -----------------------------------------------------------------------------





Build File:

<?xml version="1.0"?>
<!-- Sample build file used to retrieve project sources --> <project name="svn-test" basedir="." default="checkoutLatest">
  <!-- all properties are in build.properties -->
  <property file="build.properties" />

  <!-- path to the svnant libraries. Usually they will be located in ANT_HOME/lib -->
  <path id="svnant.classpath">
    <fileset dir="${basedir}/lib">
      <include name="**/*.jar"/>
  <!-- load the svn task -->
  <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
  <target name="clean">
    <delete dir="src_latest"/>
    <delete dir="src_${bms.version}"/>

  <target name="checkoutLatest">
          <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" nonproxyhosts="*.lenze.com" />
    <svn svnkit="false" javahl="true" username="${bms.repository.user}" password="${bms.repository.passwd}">
      <checkout url="${bms.latest.url}" revision="HEAD" destPath="src_latest" />

Received on 2010-03-22 14:14:14 CET

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