ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gavin McLeod <Gavin.McL...@Hutchison3G.com>
Subject Problem deleting files with ~ char in name
Date Fri, 25 Oct 2002 12:29:39 GMT
Hi All
 
I'm trying to get my clean target to delete class files (no problem, works
ok), and
Vim editor backup files, which have the form 'file.java~'
 
I cant get ant to remove them - ive tried several variants in the fileset
directive
eg includes="*~", includes="*.java\~" to no avail.
 
Am I doing something very wrong here, or is ~ a special char that ant cant
deal with?
 
thanks
Gavin
 
 
<target name="clean" depends="init" description="Delete old build">
    <delete includeEmptyDirs="true" failonerror="false" verbose="true">
        <fileset dir="src" includes="*.java~"/>
    </delete>
</target>


________________________________________________________________________

This e-mail message (including any attachment) is intended only for the personal 
use of the recipient(s) named above. This message is confidential and may be 
legally privileged.  If you are not an intended recipient, you may not review, copy or 
distribute this message. If you have received this communication in error, please notify 
us immediately by e-mail and delete the original message.

Any views or opinions expressed in this message are those of the author only. 
Furthermore, this message (including any attachment) does not create any legally 
binding rights or obligations whatsoever, which may only be created by the exchange 
of hard copy documents signed by a duly authorised representative of Hutchison 
3G UK Limited.
________________________________________________________________________


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message