Honor overwrite flag when publishing locally.

This commit is contained in:
Andreas Flierl 2015-04-08 15:01:18 +02:00
parent 6b89a134e7
commit 78642cb0ce
2 changed files with 12 additions and 1 deletions

View File

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

View File

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