Tracked this down with the help or @mrhaki. DefaulFileCopyDetails.java
contains the following code
public File getFile() {
if (filterChain.hasFilters()) {
throw new UnsupportedOperationException();
} else {
return fileDetails.getFile();
}
}
This explains the exception seen. I am goign to assume that this is intended behaviour and not a bug. However, this is not stated in the documentation of the Copy
or AbstractCopyTask
or FileCopyDetails
.