ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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="**/*~"/>
    <fileset>
  </delete>
</target>

--DD

-----Original Message-----
From: Rafal Kedziorski [mailto:rafcio@polonium.de] 
Sent: Sunday, October 20, 2002 3:46 PM
To: ant-user@jakarta.apache.org
Subject: cleaning up files

hallo,

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"/>
    <delete>
      <fileset dir="${clean.folder}" includes="**/*.bak"/>
      <fileset dir="${clean.folder}" includes="**/*.class"/>
      <fileset dir="${clean.folder}" includes="**/*~"/>
    </delete>
</target>


But files like TestClass.java~ would'n be deleted.


Best Regards,
Rafal

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message