Browse Source

The pattern definition **/._* has been added to the default excludes list.

PR: 5886

Requested by: gerti-apache@bitart.com (Gerd Knops)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271097 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 23 years ago
parent
commit
26bfd9b1ec
3 changed files with 14 additions and 8 deletions
  1. +4
    -0
      WHATSNEW
  2. +8
    -7
      docs/manual/dirtasks.html
  3. +2
    -1
      src/main/org/apache/tools/ant/DirectoryScanner.java

+ 4
- 0
WHATSNEW View File

@@ -28,6 +28,10 @@ Changes that could break older environments:
a check is made to see if there is another overloaded method that takes in
some other type of argument. If there is one such method, then the method
that takes in String as an argument is not selected by the Introspector.
* The pattern definition **/._* has been included into the Default
Excludes list.


Fixed bugs:
-----------


+ 8
- 7
docs/manual/dirtasks.html View File

@@ -26,7 +26,7 @@ time:</p>
the include patterns, and don't match the exclude patterns, are used.</p>
<p>Patterns can be specified inside the buildfile via task attributes or
nested elements and via external files. Each line of the external file
is taken as a pattern that is added to the list of include or exclude
is taken as a pattern that is added to the list of include or exclude
patterns.</p>
<h3><a name="patterns">Patterns</a></h3>
<p>As described earlier, patterns are used for the inclusion and exclusion.
@@ -125,11 +125,11 @@ For example, <code>mypackage/test/</code> is interpreted as if it were
way to select just the files you want.</p>

<h3>Examples</h3>
<pre>
<pre>
&lt;copy todir=&quot;${dist}&quot;&gt;
&lt;fileset dir=&quot;${src}&quot;
includes=&quot;**/images/*&quot;
excludes=&quot;**/*.gif&quot;
&lt;fileset dir=&quot;${src}&quot;
includes=&quot;**/images/*&quot;
excludes=&quot;**/*.gif&quot;
/&gt;
&lt;/copy&gt;</pre>
<p>This copies all files in directories called <code>images</code> that are
@@ -154,6 +154,7 @@ They are:</p>
**/#*#
**/.#*
**/%*%
**/._*
**/CVS
**/CVS/**
**/.cvsignore
@@ -161,10 +162,10 @@ They are:</p>
**/SCCS/**
**/vssver.scc
</pre>
<p>If you do not want these default excludes applied, you may disable them with the
<p>If you do not want these default excludes applied, you may disable them with the
<code>defaultexcludes=&quot;no&quot;</code> attribute.</p>
<hr>
<p align="center">Copyright &copy; 2001 Apache Software Foundation. All rights
<p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
Reserved.</p>

</body>


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

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2001 The Apache Software Foundation. All rights
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -151,6 +151,7 @@ public class DirectoryScanner implements FileScanner {
"**/#*#",
"**/.#*",
"**/%*%",
"**/._*",
"**/CVS",
"**/CVS/**",
"**/.cvsignore",


Loading…
Cancel
Save