[ 
https://issues.apache.org/jira/browse/IVY-971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706062#action_12706062
 ] 

Matt Khan edited comment on IVY-971 at 5/5/09 8:14 AM:
-------------------------------------------------------

fwiw it appears this patch breaks if ivy pattern != artifact pattern as the call

toResolver.exists(metaData)

can end up going through 
AbstractPatternsBasedResolver#findArtifactRef(Artifact, Date) which uses 
artifactsPatterns

(tested by applying this patch to 2.1.0-rc1)

      was (Author: mattkhan):
    fwiw it appears this patch breaks if ivy pattern != artifact pattern as the 
call

toResolver.exists(metaData)

can end up going through 
AbstractPatternsBasedResolver#findArtifactRef(Artifact, Date) which uses 
artifactsPatterns
  
> ivy:install with haltonfailure="false" stops due to not overwriting a file 
> when it should not stop.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: IVY-971
>                 URL: https://issues.apache.org/jira/browse/IVY-971
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0-RC2
>            Reporter: Benjamin Damm
>         Attachments: ivy-971.patch
>
>
> Here's an example run:
>      [echo] Optional:
>      [echo]    transitive: true
>      [echo]    overwrite: false
>      [echo]    haltonfailure: false
> [ivy:install] :: installing 
> commons-attributes#commons-attributes-compiler;2.1 ::
> [ivy:install] :: resolving dependencies ::
> [ivy:install]   found commons-attributes#commons-attributes-compiler;2.1 in 
> ivycontrib_m2
> [ivy:install]   found commons-attributes#commons-attributes-api;2.1 in 
> ivycontrib_m2
> [ivy:install]   found ant#ant;1.5 in ivycontrib_m2
> [ivy:install]   found qdox#qdox;1.5 in ivycontrib_m2
> [ivy:install] :: downloading artifacts to cache ::
> [ivy:install] :: installing in ivycontrib_m2 ::
> BUILD FAILED
> /home/bdamm/workspace/main/eng/contrib/build.xml:53: impossible to install 
> commons-attributes#commons-attributes-compiler;2.1: java.io.IOException: file 
> copy not done from 
> /home/bdamm/workspace/main/eng/contrib/../contrib/m2/commons-attributes/commons-attributes-compiler/2.1/sources/commons-attributes-compiler-2.1.jar
>  to 
> /home/bdamm/workspace/main/eng/contrib/../contrib/m2/commons-attributes/commons-attributes-compiler/2.1/sources/commons-attributes-compiler-2.1.jar:
>  destination already exists and overwrite is false

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

Reply via email to