[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,
<target name="getfromsvn" unless="deploylocal" depends="clean">
<svn javahl="false" username="${svn.username}"
<export srcUrl="${svn.url}"
</svn>
</target>
When I run the build script on Linux I get:
getfromsvn:
[svn] Using command line interface
Svn : Exporting
export -r HEAD
Password for 'idx2':
It shouldn't be prompting me for authentication since the svn target has
I believe this is because the export method in
Is it a bug? Seems like one to me.
Thanks,
Constantin
/**
* <p>
* export files and directories from remote URL.</p>
*
*/
void export(String url, String path, String revision,
setCommand(ISVNNotifyListener.Command.EXPORT, true);
CmdArguments args = new CmdArguments();
args.add("export");
args.add("-r");
args.add(validRev(revision));
args.add(url);
args.add(path);
if (force)
args.add("--force");
args.addConfigInfo(this.configDir);
execVoid(args);
}
/**
* <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,
throws CmdLineException {
setCommand(ISVNNotifyListener.Command.IMPORT, true);
CmdArguments args = new CmdArguments();
args.add("import");
args.add(path);
args.add(url);
if (!recursive) {
args.add("-N");
}
args.addLogMessage(message);
args.addAuthInfo(this.user, this.pass);
args.addConfigInfo(this.configDir);
return execString(args,false);
}
Constantin Tanno | Senior Director, Software Engineering
|
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.