ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Don't understand <delete>
Date Mon, 30 Oct 2000 07:45:28 GMT
>>>>> "r" == robert  <> writes:

 r> Why is it attempting to actually delete the directory?

 r> <delete dir="${outputDir}" verbose="yes"> 
 r>   <fileset dir="." includes="**/*.class"/> 
 r> </delete>

What this delete is supposed to do:

(1) delete directory ${outputDir} with all its contents

(2) delete all .class files found somewhere below the project's
basedir (which . becomes when Ant resolves relative filenames).

I guess, what you really want is to delete all .class files found
under ${outputDir}. This would be

<delete verbose="yes"> 
  <fileset dir="${outputDir}" includes="**/*.class"/> 

Hope this helps


View raw message