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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to