Re: [nant-dev] update existing zipfile using task
On 7/8/05, McKenna, Simon (RGH) <[EMAIL PROTECTED]> wrote: > For addition or modification of files and directories in an > existing zipfile, task could have an "append" boolean > attribute, and for deletion of existing files, it could have > a "delete" boolean attribute. > > "append" would be mutually exclusive to "delete", which should > keep the fileset element unchanged. Suggestion: Rather than two attributes with extra validation, use a single attribute (mode?) taking its values from an enumeration, similar to the 'item' attribute of the task. http://nant.sourceforge.net/release/latest/help/tasks/foreach.html That way, your zip task mode could be one of Create (what it does now), Update or Delete... while leaving room for extension without polluting the namespace or logicspace :-) -- Troy --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] update existing zipfile using task
Hello, SharpZipLib has on it's roadmap the ability to update existing zip files: http://wiki.sharpdevelop.net/default.aspx/SharpZipLib.RoadMap Would this be something the NAnt task will be interested in? I'm interested, and if the developer hive mind is keen, I'm keen to have a go at implementing the code in NAnt. For addition or modification of files and directories in an existing zipfile, task could have an "append" boolean attribute, and for deletion of existing files, it could have a "delete" boolean attribute. "append" would be mutually exclusive to "delete", which should keep the fileset element unchanged. Default for both append and delete attributes would be false, i.e. zipfile overwrite would be the default action, which should ensure backwards compatibility. Happy to submit as cvs patch once #ZipLib has released features, NAnt of course would need the updated ICSharpCode.SharpZipLib.dll. Thoughts? peace si --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] [ nant-Bugs-1234107 ] duplicate files in zip file
Bugs item #1234107, was opened at 2005-07-07 12:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234107&group_id=31650 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: zchri (zchri) Assigned to: Nobody/Anonymous (nobody) Summary: duplicate files in zip file Initial Comment: Currently it is possible to add more than one file with the same name and path to a zip file. The attached test project shows the problem. Suggested correction: Use a hashtable to check for multiple ZipEntries. I don't know what the "zip spec" says, so perhaps it's not bug but a feature... -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1234107&group_id=31650 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers