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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23790

warn if multiple patterns in include name attribute that expects to hold only a 
single pattern (e.g. in delete)

           Summary: warn if multiple patterns in include name attribute that
                    expects to hold only a single pattern (e.g. in delete)
           Product: Ant
           Version: 1.6Beta
          Platform: Other
               URL: http://ant.apache.org/manual/CoreTypes/patternset.html
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Not knowing http://ant.apache.org/manual/CoreTypes/patternset.html, I 
had the below

<delete includeEmptyDirs="true">
  <fileset dir="${build.dir}">
    <exclude name="abc  **/transform/*.class" />
    <include name="**/*.*" />
  </fileset>
</delete>

it seems that if there is a second element in the exclude statement, it is
simply ignored which is quite dangerous in this case here - also the 
**/transform/*.class files were deleted!

Suggestion: warn if there is a second element that is not expected to be there
and do not simply ignore it! In the case of the "delete" task, this is not
fail-safe at all.

See also: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23789

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to