ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47373] patch to support setting last modified date
Date Thu, 25 Jun 2009 22:12:05 GMT

--- Comment #21 from Jesse Glick <>  2009-06-25 15:11:57 PST ---
To your first concern - I guess Resource could use the adapter pattern:

Resource r = ...;
ZipEntryResource r2 ( ) =;
if (r2 ( ) != null) ...;

(This is better than instanceof/casts because you can still create a generic
proxy Resource impl without static knowledge of all possible extensions.)

To your second concern - could perhaps be solved using an external "session"
object which can keep track of open ZIPs and close them when the task is done.

Anyway, I agree that going this route would involve some nontrivial changes and
the risk of API incompatibility.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message