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=28558>.
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=28558
Lost functionality by deprecating Rename task
------- Additional Comments From jan@materne.de 2004-04-26 06:20 -------
The <rename> task performs only a FileUtils.rename().
replace=true and dest-file exists
- <rename> would delete the dest-file
- <move> does the same
replace=true and dest-file does not exist
- nothing special to do
- simple <move> works
replace=false and dest-file exists
- <rename> throws a BuildException
- <move> will delete the dest-file (the 'overwrite' attribute of the renameFile
() seems to be ignored).
- you shouldn´t depend on a BuildException here. Cleaner buildfiles would call
a <delete> before the <move>
replace=false and dest-file does not exist
- nothing special to do
- simple <move> works
I won´t close this because of the 'overwrite'-statement above. Maybe that
section will be updated. But the <rename> will be left deprecated.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|