ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47168] Copy Task includeEmptyDirs default value is wrong
Date Mon, 11 May 2009 14:05:37 GMT

--- Comment #1 from Stefan Bodewig <>  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"
    <mkdir dir="${input}/foo"/>
    <mkdir dir="${output}"/>
    <copy todir="${output}">
      <fileset dir="${input}"/>
    <au:assertFileExists file="${output}/foo"/>


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

  <target name="XtestIncludeEmptyDirsAndZipfileset"
    <mkdir dir="${input}/foo"/>
    <mkdir dir="${output}/final"/>
    <zip destfile="${output}/">
      <fileset dir="${input}"/>
    <copy todir="${output}/final">
      <zipfileset src="${output}/"/>
    <au:assertFileExists file="${output}/final/foo"/>

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message