Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 165076

Summary: edit tasklist.xml.zip data for import
Product: z_Archived Reporter: Anon <div.bugs>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P5 Keywords: helpwanted
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Anon CLA 2006-11-18 10:05:02 EST
It could be quite useful if one could edit the xml task data to be imported into mylar.

In particular, I have several task repositories I'm going to import some standard queries for, and currently I have to manually add them one by one by going through the point and click process. It would be easier to do this by copying and editing xml, and then import the xml. I seem to remember that this was possible in some earlier version, but IIRC the xml wasn't zipped in that version of mylar. I tried to update a backed up xml.zip, but it fails to import, and I'm sure the xml is right, so it must be the zip format that 7-zip (my zip/archive application) creates that can't be read by Mylar. I've tried various compression levels too btw.

I guess it would also be possible to do what I'm trying to do if I had an application that could write zip files that mylar can read.
Comment 1 Mik Kersten CLA 2006-11-21 23:50:20 EST
We can not put time to this now because we need to focus on UI improvements for such use cases (e.g. letting you select queries and/or tasks to import), since for most users editing the tasklist.xml directly will be a dangerous and fragile operation.

But we use the standard zip facilities in java.util.zip.  If I recall correctly these are compatible with Winzip, but I haven't tried unzippling and zipping a Task List.  It would be nice to support this, or at least provide instructions in the FAQ on how it can be done.  Could you try using another zip utility and see if it will work.
Comment 2 Anon CLA 2006-11-23 07:37:14 EST
When trying again on a fresh install of WTP all-in-one and Mylar, it works, so I guess it must have been a problem with my previous edit of the tasklist data after all. The reason I said "I'm sure the xml is right", was that it had worked previously on a different version, but that was probably without any context data. I didn't attempt to import context data this time.

This time I first tried unzipping and zipping using java.util.zip, and seeing that worked I tried it again using 7-zip, and now that worked as well, so I have to put the blame on myself rather than the zip archiving method.

I've only tested with local tasks so far though, not repository tasks as in my previous failing attempt, but I would imagine that it should work as well when using the proper syntax.

Apologies for wasting your time with this bogus bug report, but then again it -would- be really useful with a FAQ on how to properly edit tasklist data manually for import, like you suggested.

Thanks for your time.
Comment 3 Mik Kersten CLA 2007-01-08 20:48:48 EST
Thanks for the clarification in comment#2.  Closing.