Bug 412953 - remove jdom and rome dependencies from Mylyn Commons
Summary: remove jdom and rome dependencies from Mylyn Commons
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: 3.10   Edit
Assignee: Krzysztof Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, plan
Depends on:
Blocks:
 
Reported: 2013-07-15 07:29 EDT by Krzysztof Daniel CLA
Modified: 2013-10-17 03:30 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Daniel CLA 2013-07-15 07:29:50 EDT
Following the (short) discussion on http://dev.eclipse.org/mhonarc/lists/mylyn-dev/msg01847.html:
Let's remove unmaintained rome (together with jdom) from Mylyn.
Comment 1 Krzysztof Daniel CLA 2013-07-31 10:07:15 EDT
I did some initial investigation: 
org.eclipse.mylyn.web.tasks looks quite easy - there is only one method in WebRepositoryConnector and does not leak any rome/jdom API.

Things are a bit more complicated if it comes to the org.eclipse.mylyn.commons.notifications.feed, because it leeks SyndEntry via getSource.
Comment 2 Steffen Pingel CLA 2013-07-31 12:45:39 EDT
+1 for removing dependencies on JDOM and ROME.

I wouldn't worry about o.e.m.web.tasks initially since it's in the Incubator. Are you building/shipping that Krysztof?

For o.e.m.commons.notifications.feed we would have to rewrite the parser. The format of http://www.eclipse.org/mylyn/updates.xml is reasonably straight forward and we can also change it if that makes parsing easier.
Comment 3 Krzysztof Daniel CLA 2013-07-31 15:01:02 EDT
I'm not sure if referencing one format is really desired. AFAIK there is RSS 1.0, RSS 2.0 and Atom. I have not studied the differences yet, but found somewhere that 2.0 and Atom are just extensions of 1.0. Do you happen to know if really only one parser will be needed?
Comment 4 Krzysztof Daniel CLA 2013-08-01 08:22:03 EDT
https://git.eclipse.org/r/#/c/15041/
Comment 5 Krzysztof Daniel CLA 2013-08-02 03:48:01 EDT
Hey Steffen,
those tests pass for me locally - could you run them, too? I really have no idea why do they fail.
Comment 6 Steffen Pingel CLA 2013-08-12 13:01:53 EDT
(In reply to comment #3)
> I'm not sure if referencing one format is really desired. AFAIK there is RSS
> 1.0, RSS 2.0 and Atom. I have not studied the differences yet, but found
> somewhere that 2.0 and Atom are just extensions of 1.0. Do you happen to know if
> really only one parser will be needed?

I'm okay with limiting notifications parsing to a specific format. We only use it for Task List update notifications so we basically control the format.

(For the Generic Web Connector it's a bit different but as said in comment 2 I wouldn't worry about it.)

Thanks for the patch. I'll tentatively put this on for 3.10 so we can hopefully resolve this for the next release.
Comment 7 Steffen Pingel CLA 2013-10-05 21:07:29 EDT
Tomek, Sam, it would be great to get this in for the release.
Comment 8 Steffen Pingel CLA 2013-10-11 06:50:28 EDT
Tomek, Sam, could you take a look at the latest on https://git.eclipse.org/r/#/c/15041/? It would be great to get this in for 3.10.
Comment 9 Steffen Pingel CLA 2013-10-15 00:36:34 EDT
The changes were merged. Thanks very much for driving this, Krzysztof!
Comment 10 Sam Davis CLA 2013-10-16 17:11:52 EDT
Steffen, we still have the following line in /org.eclipse.mylyn.commons.notifications.feed/plugin.properties

bq. jars.extra.classpath = platform:/plugin/com.sun.syndication

Should this be removed? I don't believe it would ever have had any effect anyway since it is supposed to go in build.properties.
Comment 11 Steffen Pingel CLA 2013-10-17 03:30:36 EDT
That looks like a mistake indeed. Yep, let's remove that bogus entry.