ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Kebe (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-853) Wrong message: overwrite == true (SSH, SFTP)
Date Thu, 03 Jul 2008 08:30:45 GMT
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


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.


Mime
View raw message