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

Re: [Subclipse-users] Is it possible to pass --config-options to svnant?

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 23 Sep 2011 10:28:09 -0400

On Fri, Sep 23, 2011 at 10:21 AM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:

> We have noticed, on our (Solaris) build machine, that certain svn
> requests (log, info, mergeinfo, ...) are much faster when using the
> serf library. So in some of my python scripts I use "--config-option
> servers:global:http-library=serf" to speed up those calls. I can't set
> it globally in ~/.subversion/servers, because I can't use serf for
> checkout and update, because it hangs or crashes sometimes. Only for
> those specific subcommands like log, info and mergeinfo.
>
> I'd like to do the same with our ant scripts where we use svnant. Is
> it possible to pass a --config-option somehow to a specific svnant
> call?
>
> If not, would that make a sensible feature request for svnant?

The problem is that this feature only exists on the command line. So
one option would be to use an ant exec task instead of svnant for
those requests.

svnant uses svnClientAdapter as a wrapper for JavaHL etc. The JavaHL
API does not have access to this feature of the command line so there
is no way to expose it in svnClientAdapter.

I do not know if svnant exposes it or not, but you can do the
equivalent of --config-dir=/foo using svnClientAdapter. If this were
exposed in svnant, then you could have a special SVN configuration
directory that was configured for serf and use that when you want serf
and use the default, or a special one for neon when you want to use
Neon.

Of course another option would be to simply have your Ant script edit
the ~/.subversion/servers file before calling the SVN API. For
example, you could simply have a servers-serf and servers-neon file in
~/.subversion and do a simple Ant file copy before you call the svnant
task.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2843961
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2011-09-23 16:28:19 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.