ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Lubin <>
Subject newbie <delete> not removing my empty directory?
Date Fri, 19 Nov 2004 21:06:58 GMT
Based on the directory structure and files listed at the bottom, why doesn't the last delete
remove the test2_sub1 directory?

Thanks, Eric

<project name="Test" default="doIt" basedir=".">
 <description>simple example build file</description>
 <target name="doIt">
  <mkdir dir="TempCom" />
  <delete includeEmptyDirs="true"><fileset dir="TempCom" /></delete>
  <mkdir dir="TempCom" />
  <copy todir="TempCom"><fileset dir="com" /></copy>
  <delete includeEmptyDirs="true">
   <fileset dir="TempCom">
    <include name="**/*.java" />
    <include name="**/*.class" />
    <exclude name="xyz/test1/**/*.class" />


    |-test1 (with file and a.class)
      |-test1_sub1 (with file and b.class)
    |-test2 (with file and c.class)
      |-test2_sub1 (with file and d.class)
      |-test2_sub2 (with file e.txt and f.txt)

Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message