The attached patch against the 1.6 branch adds
EmittedArtifact.getLastModified() which is used to set the mtime on
files written to disk by the compiler.  This resolves issue 2280.

The default implementation in the EmittedArtifact base class is
concrete to avoid breaking changes and always returns the current
time, which is consistent with the previous behavior.

diffstat:
 EmittedArtifact.java                |   24     19 +    5 -     0 !
 SyntheticArtifact.java              |    6     6 +     0 -     0 !
 impl/StandardGeneratedResource.java |    6     6 +     0 -     0 !
 impl/StandardLinkerContext.java     |    1     1 +     0 -     0 !
 impl/StandardPublicResource.java    |   18     16 +    2 -     0 !
 5 files changed, 48 insertions(+), 7 deletions(-)

-- 
Bob Vawter
Google Web Toolkit Team

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Attachment: preserve_output_mtime_1_6_r4247.patch
Description: Binary data

Reply via email to