ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujan Digumarti <Sujan.Diguma...@india.techspan.com>
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
distDir

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

Rgds,
Sujan

-----Original Message-----
From: jinwei@korvac.com [mailto:jinwei@korvac.com]
Sent: Wednesday, April 17, 2002 11:53 AM
To: ant-user@jakarta.apache.org
Subject: <delete> is not working...


Hi,
  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}" />
</target>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message