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 22542] New: - ReplaceRegExp task updates modified time of directory
Date Tue, 19 Aug 2003 10:05:46 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=22542>.
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=22542

ReplaceRegExp task updates modified time of directory

           Summary: ReplaceRegExp task updates modified time of directory
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: leonchadwick@traderisks.com


I have the following entry in a task:

<replaceregexp file="${distdir}/bin/launch.props" byline="true" 
match="versionstring" replace="${version}" flags="g"/>

Even when this is not run because there is no replacement required, the 
directory of the file being operated upon (${distdir}/bin in this example) has 
its modified timestamp updated to the time this action is executed which causes 
some of my other tasks to go into action.
This is an unwanted and undocumented side effect (therefore probably a bug) 
especially considering how replaceregexp states that it doesn't unnecessarily 
update the files timestamp when no changes are required.

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


Mime
View raw message