You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/07/11 11:58:06 UTC
DO NOT REPLY [Bug 45377] New: ZipFile should be able to create
parent folder if this doesn't exist
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: notifications@ant.apache.org
ReportedBy: remie@backbase.com
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.
DO NOT REPLY [Bug 45377] ZipFile should be able to create parent
folder if this doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45377
--- Comment #3 from Stefan Bodewig <bo...@apache.org> 2009-08-26 04:03:59 PDT ---
actually it is svn revision 807960
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45377] ZipFile should be able to create parent
folder if this doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45377
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.0
--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2009-08-26 04:03:23 PDT ---
applied a similar patch to tar as well.
svn revision 807690
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45377] ZipFile should be able to create parent
folder if this doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45377
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 45377] ZipFile should be able to create parent
folder if this doesn't exist
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45377
--- Comment #1 from Remie Bolte <re...@backbase.com> 2008-07-11 03:02:37 PST ---
perhaps it suits better if this logic was moved to the
checkAttributesAndElements() method.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.