ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Koontz \(MapQuest\)" <dkoo...@mapquest.com>
Subject RE: Ant fileset - does tilde have special meaning
Date Wed, 13 Jun 2001 23:37:17 GMT
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


Mime
View raw message