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

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

From: Douglas Russell <douglas.russell_at_comlab.ox.ac.uk>
Date: 2006-10-18 13:01:15 CEST

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.

Here is a censored version of my ant script:

<project name="release-test" default="branch" basedir=".">
        
        <property name="branch-number" value="0.2" />
        
        <property name="svnant.jar" value="svnant.jar"/>
        <property name="svnClientAdapter.jar" value="svnClientAdapter.jar"/>
        <property name="svnjavahl.jar" value="svnjavahl.jar"/>

        <path id="ant.task.classpath">
                <pathelement location="${svnant.jar}"/>
                <pathelement location="${svnClientAdapter.jar}"/>
                <pathelement location="${svnjavahl.jar}"/>
        </path>

        <taskdef resource="svntask.properties" classpathref="ant.task.classpath"/>

        <target name="branch">
                <svn username="user1" password="user1password" javahl="false">
                        <copy
                                srcUrl="svn+ssh://myserver/var/svn/repos/connectfour"
                                destUrl="svn+ssh://myserver/var/svn/repos/connectfour-${branch-number}"
                                message="Branch-${branch-number} created" />
                </svn>
        </target>
</project>

If I replace the svn+ssh urls with appropriate https ones they work fine.

When I run the script I get:

douglas@workstation1 ~/workspace/PS-release $ ant -f PS-release-test.xml
Buildfile: PS-release-test.xml

branch:
      [svn] Using command line interface
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.

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.

I am using a standard openssh installation on the server.

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.

Any ideas would be most welcome, CCing to me as well as the list would be
great.

Cheers

Douglas

-- 
Douglas PW Russell
Research Officer / Systems Administrator - GIMI
Research Officer / Systems Administrator - NeuroGrid
Oxford University Computing Laboratory
Tel:	+44 (0)1865 283519
email:	douglas.russell@comlab.ox.ac.uk

  • application/pgp-signature attachment: stored
Received on Wed Oct 18 13:17:55 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.