ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: replace
Date Thu, 06 Mar 2003 07:46:40 GMT
<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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message