ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujan Digumarti <>
Subject RE: <delete> is not working...
Date Wed, 17 Apr 2002 06:26:46 GMT
There is no reason why it shouldn't delete  ${distDir} , i think you should
check your property

also use the "-verbose" option with ant   and see whats going on


-----Original Message-----
From: []
Sent: Wednesday, April 17, 2002 11:53 AM
Subject: <delete> is not working...

  I am new to ant. I try to use <delete> to delete some files and folders.
But the error message says it is unable to delete the files.
  The buildClassesDir contains all the class files, whereas the distDir
contains the jar files. I am able to delete the ${buildClassesDir} folder
but not the ${distDir} folder. Therefore I have to delete it manually.
  I was able to delete both folders until I re-checkout the module from cvs
(this process is done manually, not the cvs tag in ant scripts). The error
says BUILD FAILED. Unable to delete .../.../ folder.
  May I know under what circumstances I cannot delete any folders?

<target name="cleanUp" >
     <delete dir = "${distDir}" />
     <delete dir = "${buildClassesDir}" />

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message