Modify

Ticket #440 (closed defect: invalid)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by mrook

  • Status changed from new to closed
  • Resolution set to invalid

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

Working example:

<fileset dir="." includes="test/**"/>
View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.