ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Issues with delete -- manual and FAQ incorrect (?)
Date Tue, 24 Jun 2008 03:52:49 GMT
On Mon, 23 Jun 2008, Andrew Clegg <andrew.clegg@gmail.com> wrote:

> Hi everyone,
> 
> I'm having problems setting a task to delete everything in a
> particular directory. But wait, before you say "this is a FAQ", I've
> tested the solution given in the manual and FAQ, and it doesn't
> actually work.
> 
> My task looks like this, as per standard instructions (autosrc is a
> tree of source code generated by Axis2):
> 
> 	<target name="codegen.clean">
> 		<delete verbose="true" includeEmptyDirs="true">
> 			<fileset dir="autosrc" includes="**/*"/>
> 		</delete>
>   	</target>
> 
> Below is a direct cut-and-paste from my terminal window when I run
> it twice, with an ls before, between and after.

<snip/>

> 17:20:52 0 jobs clegg@bsmlx47 ~/data/GanymedeWorkspace/cathws
> (394) bash $ ls autosrc
> info  org

I don't think your directories info and src match the includes pattern
**/* which means "at least one directory level deeper than base".
What happens if you remove the includes attribute completely?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message