Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 61903 invoked from network); 7 Mar 2003 05:31:36 -0000 Received: from isp247n.hispeed.ch (HELO smtp.hispeed.ch) (62.2.95.247) by daedalus.apache.org with SMTP; 7 Mar 2003 05:31:36 -0000 Received: from solo (dclient217-162-72-11.hispeed.ch [217.162.72.11]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id h275VjJU027776 for ; Fri, 7 Mar 2003 06:31:45 +0100 Message-Id: <200303070531.h275VjJU027776@smtp.hispeed.ch> From: "Italo Compostella" To: "Ant Users List" Date: Fri, 07 Mar 2003 06:31:45 +0100 (CET) Reply-To: "Italo Compostella" Priority: Normal X-Mailer: PMMail 2.20.2380 for OS/2 Warp 4.5 In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5603CCC30B@Z011004> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: AW: replace X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks Jan, I'll work around that problem without using the replace task. Italo Compostella On Thu, 6 Mar 2003 08:46:40 +0100, Jan.Materne@rzf.fin-nrw.de wrote: > creates a temporary file. If there are any changes (matches) >the original would be deleted and the temp renamed. Otherwise the temp >would be deleted. >Because there is no BuildException with text "Couldn't delete ..." the >deletion >should work. Why the java.io.File().renameTo() doesn=B4t work? > >Sorry, no idea. > > >Jan Mat=E8rne > > >-----Urspr=FCngliche Nachricht----- >Von: Italo Compostella [mailto:compi@cpeag.ch] >Gesendet am: Mittwoch, 5. M=E4rz 2003 16:59 >An: user mailing list >Betreff: replace > >The replace task of the following target causes a failed build. >Without the replace task the build.xml works fine. > > > > includes=3D"*.xsl,lib/*.xsl,rsc/*.xsl"/> > > token=3D"${include-url}" value=3D"${dir.copybooks}" > summary=3D"true"/> > > >It ends always with this message: > > BUILD FAILED > file:I:/maindir/subdir/build-test.xml:150: > Couldn't rename temporary file > I:\maindir\subdir\test\templates\rep-20156835.tmp > >Help would really be appreciated. > >Italo > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org >