Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-853

Wrong message: overwrite == true (SSH, SFTP)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0.0-beta-2
    • 2.0-RC1
    • None
    • None
    • Windows XP, Eclipse 3.3 integrated Ant

    Description

      Although overwrite explicitly set overwrite to false:

      <ivy:publish resolver="foo-repo" publishivy="true" overwrite="false">
          <artifacts pattern="dist/[artifact]-[revision].[ext]" />
      </ivy:publish>
      

      the message says:

      build.xml:171: impossible to publish artifacts for foo#bar;0.1: java.io.IOException: destination file exists and overwrite == true
      

      The behaviour is correct! Simply the message is wrong.

      The source code related to it:

      SshRepository.java:253-257

                  if (!overwrite) {
                      if (checkExistence(filePath, session)) {
                          throw new IOException("destination file exists and overwrite == true");
                      }
                  }
      

      SFTPRepository.java:136-138

                  if (!overwrite && checkExistence(destination, c)) {
                      throw new IOException("destination file exists and overwrite == true");
                  }
      

      Attachments

        Issue Links

          Activity

            People

              maartenc Maarten Coene
              michael.kebe Michael Kebe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified