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

Re: [Subclipse-users] svn ant task fails to work with svn+ssh

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-10-18 14:46:25 CEST

Douglas Russell <douglas.russell@comlab.ox.ac.uk> wrote on 10/18/2006
07:01:15 AM:

> I wish to use the svn-ant task with svn+ssh URIs but currently it fails
to
> utilise either the username or password field in the ant script.

Never used svnant, but I can shed some light based on Subclipse.

The username and password parms do not apply to an SSH connection. The
SSH client requires a username and password and the Subversion command
line does not offer a way to pass that information into the client.

> Svn : Copy
> cp -r HEAD --force-log -m Branch-0.2 created
> svn+ssh://myserver/var/svn/repos/connectfour
> svn+ssh://myserver/var/svn/repos/connectfour-0.2 --username user1
--password
> ******* --non-interactive
> Password:
>
> which is most definitely not non-interactive. Also, the user is always
fed
> through as the user executing ant, not the user set in the ant script.

Again, this is the SSH client prompting you. The username for SSH will
come from the configuration in the Subversion config.

> If I run it from eclipse then the server side ssh logs show 3
authentication
> failures presumably because eclipse sent an empty password instead of
> prompting like the command line.

If you started Eclipse from a console, the prompt for password would
appear back in the console. If you use a client that can do a GUI prompt,
then you would see it.

> As an aside, which seems unconnected, but I guess could be related...,
when I
> run this as an ant task from within eclipse using javahl="true" causes
it to
> use the javahl method, but on the command line, it always uses the
command
> line interface as in the above example. What could possibly cause that?
Both
> methods fail in the same way from within eclipse although the javahl
error is
> slightly more cryptic.

JavaHL uses the same infrastructure as the command line, so it would also
need to launch the SSH client. When you are running the script from the
command line it probably just isn't finding the JavaHL library or some
other required piece, and so it falls back to trying to use the command
line client.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Wed Oct 18 14:46:43 2006

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

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