Modify ↓
Ticket #440 (closed defect: invalid)
ZIP task fails when finding empty dir(s)
| Reported by: | anonymous | Owned by: | mrook |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.4.1 |
| Component: | phing-core | Version: | 2.4.0 |
| Keywords: | zip empty dir | Cc: |
Description
The following fails:
<zip destfile="failure.zip">
<fileset dir="test" includes="/*"/>
</zip>
when the "test" dir is empty!
Phing says
"[zip] Nothing to do: C:\projects\myproject\failure.zip is up to date."
If you put any file into test dir, it works. Bad to create backups like this...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Your fileset looks recursively for files/directories *inside* test, excluding that dir itself.
Working example: