set defaultexcludes="no" to your <delete> task.
LM

Gavin McLeod a écrit :

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


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

Reply via email to