Login | Register
My pages Projects Community openCollabNet

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

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

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

Author markphip
Full name Mark Phippard
Date 2011-09-23 07:28:12 PDT
Message On Fri, Sep 23, 2011 at 10:21 AM, Johan Corveleyn <jcorvel at gmail dot 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/

« Previous message in topic | 2 of 4 | Next message in topic »

Messages

Show all messages in topic

[Subclipse-users] Is it possible to pass --config-options to svnant? jcorvel Johan Corveleyn 2011-09-23 07:21:51 PDT
     Re: [Subclipse-users] Is it possible to pass --config-options to svnant? markphip Mark Phippard 2011-09-23 07:28:12 PDT
         Re: [Subclipse-users] Is it possible to pass --config-options to svnant? jcorvel Johan Corveleyn 2011-09-26 01:37:17 PDT
             Re: [Subclipse-users] Is it possible to pass --config-options to svnant? markphip Mark Phippard 2011-09-26 04:31:54 PDT
Messages per page: