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."
		phone="203-601-3359"
		email="alan.gerhard@esyncnetworks.com"
/>

-----Original Message-----
From: Kumar, Senthil [mailto:Senthil.Kumar@wfg.com]
Sent: Thursday, October 19, 2000 3:57 PM
To: 'ant-user@jakarta.apache.org'
Subject: unable to delete file


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

Senthil..




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

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

BUILD FAILED

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

Total time: 1 seconds
Mime
View raw message