954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ant delete problem

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

brianlevine
Light Poster
37 posts since Oct 2008
Reputation Points: 37
Solved Threads: 5
 

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

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: