Browse Source

added .DS_Store to default excludes

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273829 13f79535-47bb-0310-9956-ffa450edef68
master
Erik Hatcher 22 years ago
parent
commit
9b9894a107
3 changed files with 16 additions and 1 deletions
  1. +2
    -0
      WHATSNEW
  2. +1
    -0
      docs/manual/dirtasks.html
  3. +13
    -1
      src/main/org/apache/tools/ant/DirectoryScanner.java

+ 2
- 0
WHATSNEW View File

@@ -98,6 +98,8 @@ Fixed bugs:

Other changes:
--------------
* **/.DS_Store has been added to the list of default pattern excludes.

* The filesetmanifest attribute of <jar> has been reenabled.

* The start and end tokens for <translate> may now be longer than a


+ 1
- 0
docs/manual/dirtasks.html View File

@@ -163,6 +163,7 @@ They are:</p>
**/vssver.scc
**/.svn
**/.svn/**
**/.DS_Store
</pre>
<p>If you do not want these default excludes applied, you may disable them with the
<code>defaultexcludes=&quot;no&quot;</code> attribute.</p>


+ 13
- 1
src/main/org/apache/tools/ant/DirectoryScanner.java View File

@@ -157,19 +157,31 @@ public class DirectoryScanner implements FileScanner, SelectorScanner {
* @see #addDefaultExcludes()
*/
protected static final String[] DEFAULTEXCLUDES = {
// Miscellaneous typical temporary files
"**/*~",
"**/#*#",
"**/.#*",
"**/%*%",
"**/._*",

// CVS
"**/CVS",
"**/CVS/**",
"**/.cvsignore",

// SCCS
"**/SCCS",
"**/SCCS/**",

// Visual SourceSafe
"**/vssver.scc",

// Subversion
"**/.svn",
"**/.svn/**"
"**/.svn/**",

// Mac
"**/.DS_Store"
};

/** The base directory to be scanned. */


Loading…
Cancel
Save