ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gerhard" <AGerh...@E-SyncNet.Com>
Subject RE: unable to delete file
Date Thu, 19 Oct 2000 20:02:56 GMT
Hi Senthil -

I ran into that too myself not 3 hours ago. I came to the conclusion that it depends upon
how the dependencies has been set up i.e. if the file is in use by another task when the delete
task gets executed it could be a problem. I noticed most of the clean up examples place that
as the main entry point with a whole string f dependencies.

but I could be as I am only beginning to involve myself in ANT.

Hope it helps a bit!

<Sender	name="Alan Gerhard"
		organization="E-Sync Networks, Inc."

-----Original Message-----
From: Kumar, Senthil []
Sent: Thursday, October 19, 2000 3:57 PM
To: ''
Subject: unable to delete file

  I am a newbie.. ant is unable to delete a jar file which was build by
I am wondering how does i can make ant to delete this file.. pls help me


<project name="claw" default="execute" basedir="c:\claw\com\citadel\claw">
  <target name="init">
    <property name="build.dir" value="c:/build" />
  <target name="clean" depends="init">
    <delete file="${build.dir}/lib/claw.jar" />	

   [delete] Deleting: C:\build\lib\claw.jar


build.xml:62: Unable to delete file C:\build\lib\claw.jar

Total time: 1 seconds
View raw message