You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Kevin Gann <ka...@gmail.com> on 2009/05/14 18:35:01 UTC
vfs dav/http resolver
I'm using the svn resolver to install libraries and dav to advertise them,
but I'd like to try the vfs resolver in projects to retrieve the libraries
so I don't require people add the ivysvn libs to their Ant library. I've
noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
commented out... is the vfs http resolver available?
<!--
<provider
class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
<scheme name="http"/>
<if-available
class-name="org.apache.commons.httpclient.HttpClient"/>
</provider>
-->
Re: vfs dav/http resolver
Posted by Maarten Coene <ma...@yahoo.com>.
Setting the m2compatible flag to "false" on your ibiblio resolver should to the trick.
Cfr http://ant.apache.org/ivy/history/2.1.0-rc1/resolver/ibiblio.html
regards,
Maarten
----- Original Message ----
From: kaygee <ka...@gmail.com>
To: ivy-user@ant.apache.org
Sent: Thursday, May 14, 2009 7:55:09 PM
Subject: Re: vfs dav/http resolver
Sorry to reply to myself... but after reading some other posts I see that the
ibilio resolver may also work for my purposes. However it appears that the
ibilio resolver pattern accesses the repository in a different way than the
svn publisher even though they appear the same to me.
The SVN install creates the following.
http://192.168.0.104/svn/ivy/internal/com.kaygee/Fake-DataGraph/5/
but the ibilio resolver attempts the following.
http://192.168.0.104/svn/ivy/internal/com/kaygee/Fake-DataGraph/5/
I believe that the com.kaygee is coming from the ivy.xml info tag which is
as follows.
<info organisation="com.kaygee" module="depends"/>
Here's my resolvers...
<svn name="ivysvn" userName="${svn.user.name}"
userPassword="${svn.user.password}"
repositoryRoot="http://192.168.0.104/svn" >
<ivy pattern="ivy/internal/[organisation]/[module]/[revision]/ivy.xml" />
<artifact
pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]"
/>
</svn>
<ibiblio name="svn.repo" m2compatible="true" usepoms="false"
root="${svn.repo}"
pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]">
</ibiblio>
I apologize for my ineptitude. :)
kg
kaygee wrote:
>
> I'm using the svn resolver to install libraries and dav to advertise them,
> but I'd like to try the vfs resolver in projects to retrieve the libraries
> so I don't require people add the ivysvn libs to their Ant library. I've
> noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
> commented out... is the vfs http resolver available?
>
> <!--
> <provider
> class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
> <scheme name="http"/>
> <if-available
> class-name="org.apache.commons.httpclient.HttpClient"/>
> </provider>
> -->
>
>
--
View this message in context: http://www.nabble.com/vfs-dav-http-resolver-tp23544267p23545676.html
Sent from the ivy-user mailing list archive at Nabble.com.
Re: vfs dav/http resolver
Posted by Adrian Woodhead <ad...@last.fm>.
In answer to your question though, I think this is due to the
m2compatible="true" that you have set on the ibiblio resolver. I've
never used that flag but I have seen some discussion that that causes
dots to be replaced with slashes, which is what you are seeing. What
happens if you set that flag on the IvySvn resolver too? (or set it to
false on the ibiblio one)
kaygee wrote:
> Sorry to reply to myself... but after reading some other posts I see that the
> ibilio resolver may also work for my purposes. However it appears that the
> ibilio resolver pattern accesses the repository in a different way than the
> svn publisher even though they appear the same to me.
>
> The SVN install creates the following.
>
> http://192.168.0.104/svn/ivy/internal/com.kaygee/Fake-DataGraph/5/
>
> but the ibilio resolver attempts the following.
>
> http://192.168.0.104/svn/ivy/internal/com/kaygee/Fake-DataGraph/5/
>
> I believe that the com.kaygee is coming from the ivy.xml info tag which is
> as follows.
>
> <info organisation="com.kaygee" module="depends"/>
>
> Here's my resolvers...
>
> <svn name="ivysvn" userName="${svn.user.name}"
> userPassword="${svn.user.password}"
> repositoryRoot="http://192.168.0.104/svn" >
> <ivy pattern="ivy/internal/[organisation]/[module]/[revision]/ivy.xml" />
> <artifact
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]"
> />
> </svn>
>
> <ibiblio name="svn.repo" m2compatible="true" usepoms="false"
> root="${svn.repo}"
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]">
> </ibiblio>
>
> I apologize for my ineptitude. :)
>
> kg
>
>
> kaygee wrote:
>
>> I'm using the svn resolver to install libraries and dav to advertise them,
>> but I'd like to try the vfs resolver in projects to retrieve the libraries
>> so I don't require people add the ivysvn libs to their Ant library. I've
>> noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
>> commented out... is the vfs http resolver available?
>>
>> <!--
>> <provider
>> class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
>> <scheme name="http"/>
>> <if-available
>> class-name="org.apache.commons.httpclient.HttpClient"/>
>> </provider>
>> -->
>>
>>
>>
>
>
Re: vfs dav/http resolver
Posted by Adrian Woodhead <ad...@last.fm>.
Kaygee, I'm not sure about the others, but I can't access those URL's, I
get:
The connection was refused when attempting to contact 192.168.0.104.
I'm assuming those are internal IP addresses which aren't accessible by
the rest of the world...
kaygee wrote:
> Sorry to reply to myself... but after reading some other posts I see that the
> ibilio resolver may also work for my purposes. However it appears that the
> ibilio resolver pattern accesses the repository in a different way than the
> svn publisher even though they appear the same to me.
>
> The SVN install creates the following.
>
> http://192.168.0.104/svn/ivy/internal/com.kaygee/Fake-DataGraph/5/
>
> but the ibilio resolver attempts the following.
>
> http://192.168.0.104/svn/ivy/internal/com/kaygee/Fake-DataGraph/5/
>
> I believe that the com.kaygee is coming from the ivy.xml info tag which is
> as follows.
>
> <info organisation="com.kaygee" module="depends"/>
>
> Here's my resolvers...
>
> <svn name="ivysvn" userName="${svn.user.name}"
> userPassword="${svn.user.password}"
> repositoryRoot="http://192.168.0.104/svn" >
> <ivy pattern="ivy/internal/[organisation]/[module]/[revision]/ivy.xml" />
> <artifact
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]"
> />
> </svn>
>
> <ibiblio name="svn.repo" m2compatible="true" usepoms="false"
> root="${svn.repo}"
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]">
> </ibiblio>
>
> I apologize for my ineptitude. :)
>
> kg
>
>
> kaygee wrote:
>
>> I'm using the svn resolver to install libraries and dav to advertise them,
>> but I'd like to try the vfs resolver in projects to retrieve the libraries
>> so I don't require people add the ivysvn libs to their Ant library. I've
>> noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
>> commented out... is the vfs http resolver available?
>>
>> <!--
>> <provider
>> class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
>> <scheme name="http"/>
>> <if-available
>> class-name="org.apache.commons.httpclient.HttpClient"/>
>> </provider>
>> -->
>>
>>
>>
>
>
Re: vfs dav/http resolver
Posted by Adrian Woodhead <ad...@last.fm>.
Ah, sorry, I thought you had posted something at those URL's, now I see
that you are just using them as examples, ignore my previous post! Doh!
kaygee wrote:
> Sorry to reply to myself... but after reading some other posts I see that the
> ibilio resolver may also work for my purposes. However it appears that the
> ibilio resolver pattern accesses the repository in a different way than the
> svn publisher even though they appear the same to me.
>
> The SVN install creates the following.
>
> http://192.168.0.104/svn/ivy/internal/com.kaygee/Fake-DataGraph/5/
>
> but the ibilio resolver attempts the following.
>
> http://192.168.0.104/svn/ivy/internal/com/kaygee/Fake-DataGraph/5/
>
> I believe that the com.kaygee is coming from the ivy.xml info tag which is
> as follows.
>
> <info organisation="com.kaygee" module="depends"/>
>
> Here's my resolvers...
>
> <svn name="ivysvn" userName="${svn.user.name}"
> userPassword="${svn.user.password}"
> repositoryRoot="http://192.168.0.104/svn" >
> <ivy pattern="ivy/internal/[organisation]/[module]/[revision]/ivy.xml" />
> <artifact
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]"
> />
> </svn>
>
> <ibiblio name="svn.repo" m2compatible="true" usepoms="false"
> root="${svn.repo}"
> pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]">
> </ibiblio>
>
> I apologize for my ineptitude. :)
>
> kg
>
>
> kaygee wrote:
>
>> I'm using the svn resolver to install libraries and dav to advertise them,
>> but I'd like to try the vfs resolver in projects to retrieve the libraries
>> so I don't require people add the ivysvn libs to their Ant library. I've
>> noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
>> commented out... is the vfs http resolver available?
>>
>> <!--
>> <provider
>> class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
>> <scheme name="http"/>
>> <if-available
>> class-name="org.apache.commons.httpclient.HttpClient"/>
>> </provider>
>> -->
>>
>>
>>
>
>
Re: vfs dav/http resolver
Posted by kaygee <ka...@gmail.com>.
Sorry to reply to myself... but after reading some other posts I see that the
ibilio resolver may also work for my purposes. However it appears that the
ibilio resolver pattern accesses the repository in a different way than the
svn publisher even though they appear the same to me.
The SVN install creates the following.
http://192.168.0.104/svn/ivy/internal/com.kaygee/Fake-DataGraph/5/
but the ibilio resolver attempts the following.
http://192.168.0.104/svn/ivy/internal/com/kaygee/Fake-DataGraph/5/
I believe that the com.kaygee is coming from the ivy.xml info tag which is
as follows.
<info organisation="com.kaygee" module="depends"/>
Here's my resolvers...
<svn name="ivysvn" userName="${svn.user.name}"
userPassword="${svn.user.password}"
repositoryRoot="http://192.168.0.104/svn" >
<ivy pattern="ivy/internal/[organisation]/[module]/[revision]/ivy.xml" />
<artifact
pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]"
/>
</svn>
<ibiblio name="svn.repo" m2compatible="true" usepoms="false"
root="${svn.repo}"
pattern="ivy/internal/[organisation]/[module]/[revision]/[artifact].[ext]">
</ibiblio>
I apologize for my ineptitude. :)
kg
kaygee wrote:
>
> I'm using the svn resolver to install libraries and dav to advertise them,
> but I'd like to try the vfs resolver in projects to retrieve the libraries
> so I don't require people add the ivysvn libs to their Ant library. I've
> noticed that in the ivy.jar I have (2.1.0-rc1) the http provider is
> commented out... is the vfs http resolver available?
>
> <!--
> <provider
> class-name="org.apache.commons.vfs.provider.http.HttpFileProvider">
> <scheme name="http"/>
> <if-available
> class-name="org.apache.commons.httpclient.HttpClient"/>
> </provider>
> -->
>
>
--
View this message in context: http://www.nabble.com/vfs-dav-http-resolver-tp23544267p23545676.html
Sent from the ivy-user mailing list archive at Nabble.com.