You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/02/08 23:17:10 UTC

DO NOT REPLY [Bug 33455] New: - and don't seem to be documented

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33455>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33455

           Summary: <exclude> and <include> don't seem to be documented
           Product: Ant
           Version: 1.6.2
          Platform: Sun
               URL: http://ant.apache.org/manual/CoreTypes/fileset.html
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: dev@ant.apache.org
        ReportedBy: douglas.kramer@sun.com
                CC: douglas.kramer@sun.com


I cannot find documentation for <exclude> and <include> other than examples.

It came as a surprise to me that their name attribute cannot accept directories.

Dominique Devienne says:

  <exclude name="BACKUP" /> means exclude any file (not directory)
  matching this pattern. Ant works on files, not directories. Directories
  are often recreated as needed, as in the case of <copy>. --DD

I thought that statement would exclude the BACKUP directory and all 
files below it.

Please document something like:

 
  Attribute  Description
  ---------- -----------------------------------
  name       Specifies the filenames to exclude.  
             Does not accept directory names.
             To exclude a directory, exclude its 
             contents.

Plus give an example where you show how to exclude a 
directory, such as:

    <fileset dir="${WORKDIR}">
         <include name="**/*" />
         <exclude name="BACKUP/**" />
    </fileset>

Includes all files below ${WORKDIR} except those in the BACKUP directory.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org