From 78642cb0ceb74c6c56aa420a0358c8daa6c75624 Mon Sep 17 00:00:00 2001 From: Andreas Flierl Date: Wed, 8 Apr 2015 15:01:18 +0200 Subject: [PATCH] Honor overwrite flag when publishing locally. --- ivy/src/main/scala/sbt/ConvertResolver.scala | 2 +- notes/0.13.9/overwrite.markdown | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 notes/0.13.9/overwrite.markdown diff --git a/ivy/src/main/scala/sbt/ConvertResolver.scala b/ivy/src/main/scala/sbt/ConvertResolver.scala index 3771266aa..a01a51380 100644 --- a/ivy/src/main/scala/sbt/ConvertResolver.scala +++ b/ivy/src/main/scala/sbt/ConvertResolver.scala @@ -253,7 +253,7 @@ private[sbt] object ConvertResolver { if (totalLength > 0) { progress.setTotalLength(totalLength); } - FileUtil.copy(source, new java.io.File(url.toURI), progress) + FileUtil.copy(source, new java.io.File(url.toURI), progress, overwrite) } catch { case ex: IOException => fireTransferError(ex) diff --git a/notes/0.13.9/overwrite.markdown b/notes/0.13.9/overwrite.markdown new file mode 100644 index 000000000..98f96c1a1 --- /dev/null +++ b/notes/0.13.9/overwrite.markdown @@ -0,0 +1,11 @@ + + [@asflierl]: http://github.com/asflierl + [1960]: https://github.com/sbt/sbt/pull/1960 + +### Fixes with compatibility implications + +### Improvements + +### Bug fixes + +- Honor overwrite flag when publishing locally. [#1960][1960] by [@asflierl][@asflierl]