ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23790] New: - warn if multiple patterns in include name attribute that expects to hold only a single pattern (e.g. in delete)
Date Mon, 13 Oct 2003 17:08:36 GMT
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: dev@ant.apache.org
        ReportedBy: hauser@acm.org


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message