I'm having trouble getting ant to delete files. I'm working through a basic spring tutorial and it has included an ant target to clean the build:

<target name="clean" description="Clean Output Directories">
			<fileset dir="${build.dir}">
				<include name="**/*.class"/>

It seems pretty basic to me, but it's not deleting anything. I'm running ant from the command line in the root directory of my project.

I've googled for a solution, but it seems most people are having problems deleting hidden files (and other special files), which isn't what I'm trying to do.

Any help would be greatly appreciated! Thanks!

Have you set the build.dir property in your build file?