ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: cleaning up files
Date Mon, 21 Oct 2002 14:55:47 GMT
Here's how I'd do it:

<target name="cleantmp" description="remove tmp files" if="clean.folder">
  <delete quiet="true" includeEmptyDirs="true">
    <fileset dir="${clean.folder}" defaultexcludes="no">
      <include name="**/*.bak"/>
      <include name="**/*.class"/>
      <include name="**/*~"/>


-----Original Message-----
From: Rafal Kedziorski [] 
Sent: Sunday, October 20, 2002 3:46 PM
Subject: cleaning up files


I have following target for cleaning up tmp files:

<target name="cleantmp" description="remove tmp files" if="clean.folder">
    <echo message="delete *.bak *.class *~ in ${clean.folder} directory"/>
      <fileset dir="${clean.folder}" includes="**/*.bak"/>
      <fileset dir="${clean.folder}" includes="**/*.class"/>
      <fileset dir="${clean.folder}" includes="**/*~"/>

But files like would'n be deleted.

Best Regards,

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

View raw message