ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: cleaning up files
Date Sun, 20 Oct 2002 20:59:22 GMT
There are a set of special file patterns that are automatically excluded 
from filesets.  **/*~ is one of those patterns.

Set defaultexcludes="false" on that fileset to allow them to be deleted.

	http://jakarta.apache.org/ant/manual/dirtasks.html#defaultexcludes

	Erik


Rafal Kedziorski wrote:
> 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>
> 
> 
> 


--
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