ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Clegg" <andrew.cl...@gmail.com>
Subject Re: Issues with delete -- manual and FAQ incorrect (?)
Date Tue, 24 Jun 2008 08:31:46 GMT
2008/6/24 Stefan Bodewig <bodewig@apache.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?

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 clegg@bsmlx47 ~/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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message