https://issues.apache.org/bugzilla/show_bug.cgi?id=51762
--- Comment #2 from Stefan Bodewig <[email protected]> 2011-10-28 14:52:50 UTC --- The analysis is correct. For "local" resources the querying the size first is a nice optimization. Also, we don't set properties for resources of length 0 and don't need to read the resource in order to find out it is empty that way. There is no easy way for Ant to know whether a resource is a remote resource, it may have been wrapped in some sort of decorator like a gzipresource wrapped around an urlresource. The best we can probably do is adding an option to disable the size check. WRT the stackoverflow comments: The call to close() inside of the getSize method is strictly necessary as there will be many cases where only the size of a resource is asked for without actually reading the stream (just think of the size selector). -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
