ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24067] New: - [PATCH] <propertyfile> should not touch a file it will not change semantically
Date Thu, 23 Oct 2003 16:49:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24067

[PATCH] <propertyfile> should not touch a file it will not change semantically

           Summary: [PATCH] <propertyfile> should not touch a file it will
                    not change semantically
           Product: Ant
           Version: 1.6Beta
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jglick@netbeans.org


If after running <propertyfile> you have made no actual changes to the
properties contained in it, it should avoid rewriting the file: changing the
timestamp might cause other tasks to think they are out-of-date etc. Important
in a big incremental build where the .properties file is used as an upstream
dependency.

There are three cases:

1. Property file did not exist before. Whether or not any keys are being added,
create the .properties file, and log a message (INFO).

2. Existed before, and we are making changes. Rewrite, log a message (INFO).

3. Existed before, and we are not making any changes. Just log a message (VERBOSE).

Patch includes added unit test.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message