I'm using the delete task to remove a large number of file/directories, and I don't want my log file listing everything that's being deleted. However, when I set the verbose attribute of the delete task to false, the files being deleted are still being listed. I've tried entering both "false" and "no", but the result is always the same. I'm using Ant 1.6.5 with jdk1.4.2_10 on a Win 2k box.
I can't reproduce the behavior you describe. Please attach a self-contained example to evoke this problem.
Created attachment 18548 [details] Self-contained example of the delete task verbose problem There's an included .bat file that has been renamed to .txt to avoid being stripped by virus-scanners. You may need to edit it to point to your ant home.
OK, Sorry it took so long to get back. I've attached a self-contained example with a batch file to get you up and running...just rename the .txt file in the "delete-issue" directory to .bat, and edit it to point to your ant home You may also need to edit the build.xml to point to wherever you unzipped the zip file to, if you didn't unzip it directly to c:\
Here is the output I get: Buildfile: build.xml [copy] Copying 390 files to C:\work\delete-issue\for-deletion clean: [delete] Deleting 390 files from C:\work\delete-issue\for-deletion [delete] Deleted 36 directories from C:\work\delete-issue\for-deletion BUILD SUCCESSFUL Total time: 6 seconds This looks normal to me... what do you get?
That's what I would expect to see, but I get a full listing. Would it be possible for you to verify it using the same setup I have? JDK1.4.2_10, Ant 1.6.5, Win2k?
I have tried with jdk1.4.2_12 on a win 2k box with ant 1.6.5 and do not see the problem.
well, duh. Peter, did you run the build with plain Ant or with the included batch file? The batch file passes "-verbose" to Ant, which causes the huge listing. I'm not sure why you're using this custom batch file to launch Ant anyway. You should probably join the userlist to get a better idea of how to configure your system without having to resort to such things. Especially, forgive me for saying, when they waste others' time looking for problems that are not there. :)
Opps, you are right, I did not see the -verbose in the included bat file, I did not use the included bat file as the java and ant dirs are hard-coded. Do not be too hard on reporters of bugs, it is important to get reports on user experiances with ant.
(In reply to comment #8) > Do not be too hard on reporters of bugs, it is important to > get reports on user experiances with ant. Hell, I smiled, didn't I? >:)