Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.0.0-beta-2
-
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
- duplicates
-
IVY-752 Wrong error message for republishing a module
- Resolved