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

[Subclipse-users] export command in svnClientAdapter.jar doesn't pass authentication through to SVN command line client on Unix/Linux

From: Constantin Tanno <ctanno_at_itradenetwork.com>
Date: Fri, 12 Sep 2008 16:40:06 -0700

I have the following target in my build script (note that svn.username,
etc. all come from a properties file and are correct and working):


        <target name="getfromsvn" unless="deploylocal" depends="clean">

                <svn javahl="false" username="${svn.username}"

                        <export srcUrl="${svn.url}"
revision="${svn.revision}" destPath="${PROJECT_HOME}" force="true" />




When I run the build script on Linux I get:



      [svn] Using command line interface

Svn : Exporting

export -r HEAD
C003/IDXCore/Custom /home/idx2/build/IDX22 --force

Password for 'idx2':


It shouldn't be prompting me for authentication since the svn target has
a username and password. NOTE that to reproduce this behavior you need
to make sure that any cached credentials in the user's home directory in
.subversion/auth/svn.simple have been removed.


I believe this is because the export method in
org.tigris.subversion.svnclientadapter.commandline.SvnCommandLine does
not do "args.addAuthInfo" like almost every other command in that file
(see import, for example).


Is it a bug? Seems like one to me.







             * <p>

             * export files and directories from remote URL.</p>



            void export(String url, String path, String revision,
boolean force) throws CmdLineException {

        setCommand(ISVNNotifyListener.Command.EXPORT, true);

                        CmdArguments args = new CmdArguments();






                        if (force)







             * <p>

             * Commit an unversioned file or directory into the


     * @param path Local path to import from.

             * @param url Remote URL to import to.

             * @param message commit message


            String importFiles(String path, String url, String message,
boolean recursive)

                        throws CmdLineException {

        setCommand(ISVNNotifyListener.Command.IMPORT, true);

                        CmdArguments args = new CmdArguments();




        if (!recursive) {




                        args.addAuthInfo(this.user, this.pass);


                        return execString(args,false);



Constantin Tanno | Senior Director, Software Engineering
iTradeNetwork, Inc. <http://www.itradenetwork.com/> (formerly Instill
Corporation <http://www.instill.com/> )
777 Mariners Island Blvd., Suite 400, San Mateo, CA 94404
P: 650.645.2745 | F: 650.645.2601 | E: ctanno_at_itradenetwork.com

Received on 2008-09-13 02:54:24 CEST

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.