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

Maarten Coene resolved IVY-853.
-------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.0-RC1
         Assignee: Maarten Coene

Duplicate of IVY-752

> Wrong message: overwrite == true (SSH, SFTP)
> --------------------------------------------
>
>                 Key: IVY-853
>                 URL: https://issues.apache.org/jira/browse/IVY-853
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta-2
>         Environment: Windows XP, Eclipse 3.3 integrated Ant
>            Reporter: Michael Kebe
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> Although overwrite explicitly set overwrite to false:
> {noformat}
> <ivy:publish resolver="foo-repo" publishivy="true" overwrite="false">
>     <artifacts pattern="dist/[artifact]-[revision].[ext]" />
> </ivy:publish>
> {noformat}
> the message says:
> {noformat}
> build.xml:171: impossible to publish artifacts for foo#bar;0.1: 
> java.io.IOException: destination file exists and overwrite == true
> {noformat}
> *The behaviour is correct!* Simply the message is wrong.
> The source code related to it:
> SshRepository.java:253-257
> {noformat}
>             if (!overwrite) {
>                 if (checkExistence(filePath, session)) {
>                     throw new IOException("destination file exists and 
> overwrite == true");
>                 }
>             }
> {noformat}
> SFTPRepository.java:136-138
> {noformat}
>             if (!overwrite && checkExistence(destination, c)) {
>                 throw new IOException("destination file exists and overwrite 
> == true");
>             }
> {noformat}

-- 
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