If they are in your classpath or referenced by a running java application (including ant!), windows may prevent you from deleting the file. Also (of course) check the file permissions.
HTH, Paul > -----Original Message----- > From: Robert Priest [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 17, 2002 1:12 PM > To: '[EMAIL PROTECTED]' > Subject: cannot delete certain jars. > > > USING 1.5Beta1 binary download. > > I Set a property called: > > <property name="TOMCAT_OUT" > value="${DMS_OUTPUT}build\dms\webout\tomcat\" /> > > and I try to delet that dir using: > > <target name="clean" depends="init"> > <delete dir="${TOMCAT_OUT}"> > </delete> > </target> > > However certain jars are not deleted. For jars such as servlet.jar, > catalina.jar, and xerces.jar (and there are other), I get a > message like the > following: > > BUILD FAILED > D:\pw\Development\src\dms\web\src\java\build.xml:16: Unable > to delete file > D:\pw > \Development\output\build\dms\webout\tomcat\common\lib\servlet.jar > > > > I am positive that those files do exist. And it is not all jars. Just > certain ones. > > Does anyone know why this is happening? > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
