ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Italo Compostella" <co...@cpeag.ch>
Subject Re: AW: replace
Date Fri, 07 Mar 2003 05:31:45 GMT
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:

><replace> 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´t work?
>
>Sorry, no idea.
>
>
>Jan Matèrne
>
>
>-----Ursprüngliche Nachricht-----
>Von: Italo Compostella [mailto:compi@cpeag.ch]
>Gesendet am: Mittwoch, 5. März 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.
>
><target name="copy_replace" depends="_init">
>    <copy todir="${dir.templates}" overwrite="true">
>      <fileset dir="${basedir}"
>        includes="*.xsl,lib/*.xsl,rsc/*.xsl"/>
>    </copy>
>    <replace dir="${dir.templates}" includes="**/*.xsl"
>             token="${include-url}" value="${dir.copybooks}"
>             summary="true"/>
>  </target>
>
>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
>



Mime
View raw message