You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/07/04 12:34:43 UTC
[Bug 624] - copy commands should remove existing file before copying content
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=624
*** shadow/624 Sun May 20 17:21:21 2001
--- shadow/624.tmp.19021 Wed Jul 4 03:34:43 2001
***************
*** 1,19 ****
! Bug#: 624
! Product: Ant
! Version: 1.2
! Platform: Sun
! OS/Version: All
! Status: NEW
! Resolution:
! Severity: Normal
! Priority:
! Component: Core tasks
! AssignedTo: ant-dev@jakarta.apache.org
! ReportedBy: ederksen@arrow.lz.att.com
! URL:
! Cc:
! Summary: copy commands should remove existing file before copying content
!
The copy task uses org.apache.ant.tools.ant.Project.copyFile() which
contains a minor bug. It uses a BufferWriter or FileOutputStream and starts
copying the file contents, without removing the original file.
--- 1,19 ----
! +============================================================================+
! | copy commands should remove existing file before copying content |
! +----------------------------------------------------------------------------+
! | Bug #: 624 Product: Ant |
! | Status: NEW Version: 1.2 |
! | Resolution: Platform: Sun |
! | Severity: Normal OS/Version: All |
! | Priority: High Component: Core tasks |
! +----------------------------------------------------------------------------+
! | Assigned To: bodewig@apache.org |
! | Reported By: ederksen@arrow.lz.att.com |
! | CC list: Cc: |
! +----------------------------------------------------------------------------+
! | URL: |
! +============================================================================+
! | DESCRIPTION |
The copy task uses org.apache.ant.tools.ant.Project.copyFile() which
contains a minor bug. It uses a BufferWriter or FileOutputStream and starts
copying the file contents, without removing the original file.
***************
*** 48,51 ****
to test for that.
I was using Ant 1.2 on Solaris, but the problem concerns any platform that
! has (soft) links.
--- 48,51 ----
to test for that.
I was using Ant 1.2 on Solaris, but the problem concerns any platform that
! has (soft) links.