You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Maarten Coene (JIRA)" <ji...@apache.org> on 2010/05/07 22:13:00 UTC

[jira] Updated: (IVY-1167) Using SFTP resolver with full pattern URL prevents use of dynamic versions

     [ https://issues.apache.org/jira/browse/IVY-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene updated IVY-1167:
-------------------------------

    Fix Version/s: 2.2.0-RC1
                       (was: trunk)

> Using SFTP resolver with full pattern URL prevents use of dynamic versions
> --------------------------------------------------------------------------
>
>                 Key: IVY-1167
>                 URL: https://issues.apache.org/jira/browse/IVY-1167
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.0
>         Environment: Jsch 0.1.31 and 0.1.42.
> JDK 1.6+
> ant 1.8RC1
> Linux Gentoo
>            Reporter: Gregory Fernandez
>            Assignee: Maarten Coene
>             Fix For: 2.2.0-RC1
>
>         Attachments: sftp.patch
>
>
> Hello !
> I'm using a sftp repository. Let's say there is a module called foo, revsions  1.2.3 and 1.2.4 are present.
> I add :  <dependency org="org.my" name="foo" rev="1.2.*+*"/>
> Resolve is unsucessful if I declare my repository as an full URL :
> {code:xml}
> <resolvers>
>   <sftp name="public" user="rep.user" userPassword="rep.password" >
>     <ivy pattern="sftp://rep.host/home/ivy/repository/[organisation]/[module]/[revision]/ivys/ivy.xml"/>
>     <artifact pattern="sftp://rep.host/home/ivy/repository/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"/>
>    </sftp>
> </resolvers>
> {code}
> But everything works if I declare my repository using attributes :
> {code:xml}
> <resolvers>
>   <sftp name="public" host="rep.host" user="rep.user" userPassword="rep.password" >
>     <ivy pattern="/home/ivy/repository/[organisation]/[module]/[revision]/ivys/ivy.xml"/>
>     <artifact pattern="/home/ivy/repository/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]"/>
>    </sftp>
> </resolvers>
> {code}
> In fact, the list method use the pattern as a path, and don't remove the *sftp://<host>* .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.