On Mon, 23 Jun 2008, Andrew Clegg <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] ~/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to