https://issues.apache.org/bugzilla/show_bug.cgi?id=45377
Summary: ZipFile should be able to create parent folder if this
doesn't exist
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=22245)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22245)
Suggestion of adding folder check when creating new zip archive in executeMain
Currently the zip / jar / war / etc tasks fail if the parent directory of a new
archive being created does not exist.
This can be prevented if we force the directory to be created. The suggested
patch does so without user interaction, perhaps an attribute should be
introduced for more control.
An example of this behavior can be found in the copy task. If you copy files to
a directory that does not exists, this directory will be created (no attribute
is required for this).
I know I often forget to add the required mkdir task to ensure the directory
exists, causing the build to fail. It would save me some headache if this
behavior was implemented.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.