Date: 2004-02-28T21:53:19 Editor: 218.214.49.176 <> Wiki: Ant Wiki Page: NewAntFeaturesInDetail/DefaultExcludes URL: http://wiki.apache.org/ant/NewAntFeaturesInDetail/DefaultExcludes
no comment Change Log: ------------------------------------------------------------------------------ @@ -1,34 +1,39 @@ -[http://ant.apache.org/manual-1.6beta/CoreTasks/defaultexcludes.html the task's manual] +[http://ant.apache.org/manual/CoreTasks/defaultexcludes.html 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"/> }}} +{{{ + <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"/> }}} +{{{ + <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> }}} +{{{ + <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> +}}} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]