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 23789] New: - warn if <delete task contains a fileset AND a dir attribute!! The content of dir is deleted before fileset's exclude is evaluated!!!
Date Mon, 13 Oct 2003 17:02:44 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=23789>.
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=23789

warn if <delete task contains a fileset AND a dir attribute!! The content of dir is deleted
before fileset's exclude is evaluated!!!

           Summary: warn if <delete task contains a fileset AND a dir
                    attribute!! The content of dir is deleted before
                    fileset's exclude is evaluated!!!
           Product: Ant
           Version: 1.6Beta
          Platform: Other
               URL: http://ant.apache.org/manual/CoreTasks/delete.html
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: hauser@acm.org


I had a simple delete task
<delete dir="${build.dir}" includeEmptyDirs="true" />
and wanted to exclude something
  excludes="**/transform/**/*.* ${ASM_jar}"
Doing that I got the DEPRECATED error and added
  <fileset dir="${build.dir}">
    <exclude name="**/transform/*.class" />
    <include name="**/*.*" />
  </fileset>
resulting in
<delete dir="${build.dir}" includeEmptyDirs="true">
  <fileset dir="${build.dir}">
    <exclude name="**/transform/*.class" />
    <include name="**/*.*" />
  </fileset>
</delete>

BUILD FAILED
file:build.xml:667: WEB-INF/classes not found.

The exclude statement came too late and all its contents were already gone!

Suggested resolution:
if a nested fileset is present, warn about deleting what is specified in "dir"

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


Mime
View raw message