I want to execute ANT delete target, so that I can delete all files in the directory that mach some criteria:
<delete quiet="true">
<fileset dir="${java.io.tmpdir}" includes="soapirp*.log*"/>
</delete>
it does not work, I think it happens because ant is trying to invoke unix rm -f command which supposed to delete file without asking me to confirm the deletion, but this does not work, i tested it by running
rm - f filename
it still prompts me for the confirmation the only way I made it work by running:
/usr/bin/rm -f filename
then eveyting works as expected , I need to tell the ant to use the different version of rm I guess but how ??
antuses the Java File API to delete files, notrm. Your problem must be elsewhere.(and there must be no space between
-andf).