On Aug 13, 2009, at 11:14 PM, Adam Murdoch wrote:

Hi,

There's a few cases which copy() could possibly deal with better, but I'm not sure what behaviour we want.

- Target for a file already exists as a directory
- Target for a directory already exists as a file

Given that we replace existing files, it feels consistent that in both cases we remove the existing file/directory.

I agree.


- Target file exists and is read-only
- Target directory exists and is read-only

In both these cases, I don't think there's much we can do except throw an exception with an error message explaining that the targets are read-only.

Right.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to