ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45960] New: replace task failed to delete file
Date Tue, 07 Oct 2008 07:22:21 GMT

           Summary: replace task failed to delete file
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        ReportedBy: support_niveau_3_socle_technique_j2ee.grprec@agora.msa.f

I use an ant script to build an EAR file.

This script runs fine since years on Unix systems.
On Windows, an exception happens with the following message :

D:\DevWebSDI02\NE00P\UEDIE\bin\Z55C02.xml:325: IOException in
D:\DevWebSDI02\wlo\DWRDZ82TEI\EAR\online\Agora\z55cnxtest\WEB-INF\web.xml - to delete
D:\DevWebSDI02\wlo\DWRDZ82TEI\EAR\online\Agora\z55cnxtest\WEB-INF\web.xml while
trying to rename

The line 325 and followings are :
<replace file="${ear.dir}${file.separator}$..."
  <replacefilter token="@@@@ROLE_USER@@@@" property="ROLE_USER_${templ}" />
  <replacefilter token="@@@@AUTH_METHOD@@@@" property="AUTH_METHOD_${templ}" />

The ant version used is Eclipse's one org.apache.ant_1.7.0.v200706080842
The same problem happens with Ant 1.7.1.

My workaround is to call System.gc() when entering in the replace method of the

But it has an effect on speed execution.

I had also found some posts about this problem and Stefan Bodewig was talking
about relations between JVM and Windows file systems but unfortunately, I
cannot retrieve these posts.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message