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 2004/08/04 16:43:14 UTC
DO NOT REPLY [Bug 30469] New: -
replace task does not close files specified by replacefilterfile or propertyfile
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