ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47168] Copy Task includeEmptyDirs default value is wrong
Date Mon, 11 May 2009 14:05:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47168





--- Comment #1 from Stefan Bodewig <bodewig@apache.org>  2009-05-11 07:05:36 PST ---
what you see is not related to the includeemptydirs attribute at all, which
does default to true.

This test here 

  <target name="testIncludeEmptyDirsDefaultsToTrue"
         
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=47168">
    <mkdir dir="${input}/foo"/>
    <mkdir dir="${output}"/>
    <copy todir="${output}">
      <fileset dir="${input}"/>
    </copy>
    <au:assertFileExists file="${output}/foo"/>
  </target>

passes.

If you change the target to use a zipfileset (this is what I understand from
your description)

  <target name="XtestIncludeEmptyDirsAndZipfileset"
         
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=47168">
    <mkdir dir="${input}/foo"/>
    <mkdir dir="${output}/final"/>
    <zip destfile="${output}/zipfile.zip">
      <fileset dir="${input}"/>
    </zip>
    <copy todir="${output}/final">
      <zipfileset src="${output}/zipfile.zip"/>
    </copy>
    <au:assertFileExists file="${output}/final/foo"/>
  </target>

it fails.

The reason that it fails lies in zipfileset, though.  Or more exactly in
AbstractFileSet's implementation of the iterator() method which only returns
non-directory resources at all.

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

Mime
View raw message