You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "David Koontz (MapQuest)" <dk...@mapquest.com> on 2001/06/14 00:38:22 UTC
Ant fileset - does tilde have special meaning
in my build.xml
<target name="clean">
<delete dir="${deploy.home}"/>
<delete>
<fileset dir="." includes="**/*.*~"/>
</delete>
</target>
the tilde ('~') appears to have some special meaning for ant - it gets
ignored
I have VIM backup files all throughout the src dirs - I'd like them to be
deleted on an
Ant clean command. The backup files have a format of *.*~ (ie
somefile.jsp~).
The above delete command doesn't work.
I also tried "**/*.*\~" ie escaping the ~
Help please,
David Koontz dkoontz@mapquest.com
Software Engineer - Enterprise Services
MapQuest www.mapquest.com
Denver, CO 303 244 0305
RE: Ant fileset - does tilde have special meaning
Posted by "David Koontz (MapQuest)" <dk...@mapquest.com>.
Never mind - I found it.
RTFM - use 'defaultexcludes="no"' - the pattern **/*~ is one pattern that
is excluded from matching
http://jakarta.apache.org/ant/manual/dirtasks.html
<target name="clean">
<delete dir="${deploy.home}"/>
<delete>
<fileset dir="." includes="**/*.*~" defaultexcludes="no"/>
</delete>
</target>
David
-----Original Message-----
From: David Koontz (MapQuest) [mailto:dkoontz@mapquest.com]
Sent: Wednesday, June 13, 2001 4:38 PM
To: ant-user@jakarta.apache.org
Subject: Ant fileset - does tilde have special meaning
in my build.xml
<target name="clean">
<delete dir="${deploy.home}"/>
<delete>
<fileset dir="." includes="**/*.*~"/>
</delete>
</target>
the tilde ('~') appears to have some special meaning for ant - it gets
ignored
I have VIM backup files all throughout the src dirs - I'd like them to be
deleted on an
Ant clean command. The backup files have a format of *.*~ (ie
somefile.jsp~).
The above delete command doesn't work.
I also tried "**/*.*\~" ie escaping the ~
Help please,
David Koontz dkoontz@mapquest.com
Software Engineer - Enterprise Services
MapQuest www.mapquest.com
Denver, CO 303 244 0305
Re: Ant fileset - does tilde have special meaning
Posted by Diane Holt <ho...@yahoo.com>.
Have you tried adding defaultexcludes="no"?
Diane
--- "David Koontz (MapQuest)" <dk...@mapquest.com> wrote:
> in my build.xml
>
> <target name="clean">
> <delete dir="${deploy.home}"/>
> <delete>
> <fileset dir="." includes="**/*.*~"/>
> </delete>
> </target>
>
> the tilde ('~') appears to have some special meaning for ant - it gets
> ignored
>
> I have VIM backup files all throughout the src dirs - I'd like them to
> be
> deleted on an
> Ant clean command. The backup files have a format of *.*~ (ie
> somefile.jsp~).
>
> The above delete command doesn't work.
>
> I also tried "**/*.*\~" ie escaping the ~
>
> Help please,
>
> David Koontz dkoontz@mapquest.com
> Software Engineer - Enterprise Services
> MapQuest www.mapquest.com
> Denver, CO 303 244 0305
>
>
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/