Differences between revisions 2 and 3
Revision 2 as of 2005-03-22 05:42:42
Size: 1140
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 3 as of 2009-09-20 22:07:58
Size: 1142
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[http://ant.apache.org/manual/CoreTasks/defaultexcludes.html the task's manual] [[http://ant.apache.org/manual/CoreTasks/defaultexcludes.html|the task's manual]]

the task's manual

Your editor always creates backup files under the name *.backup and you want to ignore them just like **/*~?

  <defaultexcludes add="**/*.backup"/>

and it has become a default exclude pattern. You can even remove it again at a later point or reset the list of patterns to the built-in list (that still exists).

If you can't remember which patterns make up the default excludes, run

  <defaultexcludes echo="true"/>

If you need to, you can also remove an item or three from the default excludes temporarily, like maybe...

  <target name="dangerous-cvs-stuff">
    <defaultexcludes remove="**/CVS"/>
    <defaultexcludes remove="**/CVS/**"/>
    <defaultexcludes remove="*.backup"/>

    <copy todir="../reposbackup">
      <fileset dir="/usr/cvs/myRepos"/>
    </copy>
    <copy todir="../wdbackup">
      <fileset dir="."/>
    </copy>

    <defaultexcludes default="true"/>
    <defaultexcludes add="**/*.backup"/>
  
    (do stuff with cvs task that you havn't tested yet)

  </target>

NewAntFeaturesInDetail/DefaultExcludes (last edited 2009-09-20 22:07:58 by localhost)