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

Re: [Subclipse-users] svnant and authentication

From: Peter Kahn <citizenkahn_at_gmail.com>
Date: Mon, 16 Jun 2008 12:37:10 -0400

I found an interesting pattern which threw me for a loop initially

*Windows*: only commandline adapter handles auth caching
*Unix*: only java adapter handles auth caching
*Hpux*: handles both (that's odd)

I'll bet there's much more going on here, but this is enough for me to deal
with my issue. So, it is possible, or even likely, that something in the
build system is impacting how things work and I'll need to tease that out.
For now, I'm satisfied with an if-platform-use-svn-type solution.

Here's my test.

   - create a simple module with an ant script, shell/batch scripts for
   running it on windows and linux and two copies of ant (1.6.1, and 1.7.0).
   - create some Targets like the following
   - deploy my module to the various platforms via my distributed build
   system

    <target name="javasvn">
        <delete dir="${dest}"/>
        <echo>Test - Javasvn</echo>
        <svn javahl="no" javasvn="yes">
            <checkout url="${svn.path}" destPath="${dest}"/>
        </svn>
    </target>
    <target name="native">
        <delete dir="${dest}"/>
        <echo>Test - native</echo>
        <svn javahl="no" javasvn="no" >
            <checkout url="${svn.path}" destPath="${dest}"/>
        </svn>
    </target>
    <target name="javahl">
        <delete dir="${dest}"/>
        <echo>Test - Java HL</echo>
        <svn javahl="yes">
            <checkout url="${svn.path}" destPath="${dest}"/>
        </svn>
    </target>
I created a simple ant

On Mon, Jun 16, 2008 at 10:39 AM, Mark Phippard <markphip_at_gmail.com> wrote:

> On Mon, Jun 16, 2008 at 10:16 AM, Peter Kahn <citizenkahn_at_gmail.com>
> wrote:
> > How do you normally solve the problem with authentication and automated
> > builds?
> >
> > I require basic http authentication via ldap with my svn repository
> > and I want that auth cached so my automated builds can do their
> > checkouts and imports (we presently store built artifacts in a
> > disribution repository). Oh, and my builds are distributed across
> > many flavors of linux and windows with repository access happening at
> > the beginning, middle and end of the build.
> >
> > My repositories use basic ldap auth. The native client caches its
> > creds and gives a user experience similar to cvs and this is good. The
> > java svntask does not and checkouts mid build fail due to "auth
> > cancelled.". Finally, I'd like to use a pure java solution because
> > some of my unix boxes cannot be update with newer libraries to support
> > the svn client.
>
> There is no reason svnAnt should not use these same cached
> credentials. Do your Ant scripts run as a user that has the
> credentials cached?
>
> I do not personally use svnAnt, but Subclipse uses the same Java
> libraries and code.
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
> For additional commands, e-mail: users-help_at_subclipse.tigris.org
>
>

-- 
Peter Kahn
citizenkahn_at_gmail.com
pkahnpie1_at_AIM
http://citizenkahn.myplaxo.com
Awareness - Intention - Action
Received on 2008-06-16 18:37:24 CEST

This is an archived mail posted to the Subclipse Users mailing list.