ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Fernandez (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-1167) Using SFTP resolver with full pattern URL prevents use of dynamic versions
Date Sun, 07 Feb 2010 15:14:27 GMT
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


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.


Mime
View raw message