You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/08/19 12:05:46 UTC

DO NOT REPLY [Bug 22542] New: - ReplaceRegExp task updates modified time of directory

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