ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35801] - Replace file failure on Windows 2000 server
Date Fri, 22 Jul 2005 03:23:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35801>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35801





------- Additional Comments From shliang@middleware.com.cn  2005-07-22 05:23 -------
I don't think so. As I know, Replace call FileUtils.rename() to rename the file.
The problem is in the rename() method. Sometimes it can't delete the files
correctly, but if I use class Delete & Move to do the same thing -- renaming the
file, it works well under Windows. After reading the implement of class Delete
and method FileUtils.rename(), I found the class Delete have a complex and
useful implementation of deleting mechanism that can delete the file correctly
under windows, and the implementation of FileUtils.rename() is too simple to
handle the situation under Windows. I suggest to use the deleting mechanism of
class Delete(is also a task) rewrite the implementation of FileUtils.rename().

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message