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 30469] New: - replace task does not close files specified by replacefilterfile or propertyfile
Date Wed, 04 Aug 2004 14:43:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30469>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30469

replace task does not close files specified by replacefilterfile or propertyfile

           Summary: replace task does not close files specified by
                    replacefilterfile or propertyfile
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: juerg@pyx.ch


The replace task does not close the files opened when using either the
replacefilterfile or propertyfile attribute (all ant versions, at least from
1.5 up)
This can result in errors on Windows XP when the specified file is a temporary
file that should be deleted afterwards.

   <tempfile property="repfile" .../>
   ... write something into ${repfile}
   <replace replacefilterfile="${repfile}">
     <include name="*.properties"/>
   </replace>
   <delete file="${repfile}"/>

The above sequence will result in an error message from 'delete'
Unable to delete file (only on Windows XP)


Fix in org/apache/tools/ant/taskdefs/Replace.jar:

I will attach a patch for ant 1.6.2

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


Mime
View raw message