2008/6/24 Stefan Bodewig <[EMAIL PROTECTED]>:

> 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?

That works! Thanks. But this means the manual is definitely wrong.

>From http://ant.apache.org/manual/CoreTasks/delete.html ...


  <delete includeEmptyDirs="true">
    <fileset dir="build"/>
  </delete>

deletes all files and subdirectories of build, including build itself.

  <delete includeemptydirs="true">
    <fileset dir="build" includes="**/*"/>
  </delete>

deletes all files and subdirectories of build, without build itself.


However my target looks like this:


        <target name="codegen.clean">
                <delete verbose="true" includeemptydirs="true">
                        <fileset dir="autosrc"/>
                </delete>
        </target>


and it has just deleted everything inside my autosrc directory
(except, correctly, .svn which is in the default excludes) but left
autosrc itself intact.


09:24:00 0 jobs [EMAIL PROTECTED] ~/data/GanymedeWorkspace/cathws
(436) bash $ ls -la autosrc/
total 12
drwxr-xr-x 3 clegg users 4096 Jun 24 09:23 .
drwxr-xr-x 9 clegg users 4096 Jun 23 15:55 ..
drwxr-xr-x 6 clegg users 4096 Jun 23 15:55 .svn


Should I submit this as a bug report somewhere? I'm running Ant 1.6.5
in Sun Java 1.6.0_06-b02 on Centos 5 (i.e. basically RedHat
Enterprise).

Thanks,

Andrew.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to