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">
		<delete>
			<fileset dir="${build.dir}">
				<include name="**/*.class"/>
			</fileset>
		</delete>
	</target>

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!
/Brian

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.