On Wed, Jul 2, 2008 at 12:17 PM, Marko Bauhardt <[EMAIL PROTECTED]> wrote:
>
> On Jul 2, 2008, at 10:26 AM, Xavier Hanin wrote:
>
> Hi Xavier,
>
> That's a place where Ivy is not shining, but there's another option: use
>> Ivy CredentialsStore. sg like that should be working:
>> org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("My
>> private Repo Realm", "repohost", "username", "password");
>>
>>
>
> thanks a lot for the hint. i have tried this and it doesnt work. but i'm a
> newbie on ivy. i have to read more ivy documentation (e.g. CredentialStore)
> to get more understanding.
Actually there isn't much documentation on this class, since until recently
Ivy wasn't meant to be used as an API. But I'm surprised it doesn't work,
that's what Ivy use internally and it works AFAIK. I guess you can activate
Ivy debug logs, you should see logs about "installing
org.apache.ivy.util.url.IvyAuthenticator" and when accessing the repo
"authentication: k='...' c='...'" which can help setting the right values
for realm and host.
Xavier
>
>
> Thanks for help
> marko
>
>
> HTH,
>>
>> Xavier
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/