Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] Mylyn WikiText and optional dependencies

If you specify an optional dependency it will be marked as non-greedy by default (in previous Tycho versions optional dependencies used to be greedy by default). To ensure that the publisher marks an optional dependency as greedy add a special directive in the manifest [1]:

 resolution:=optional;x-installation:=greedy

Also be aware that optional, non-greedy dependencies that are required during compile time need to be listed in the build.properties as jars.extra.classpath entries.

Steffen


[1] http://wiki.eclipse.org/Equinox/p2/Publisher#BundlesAction

On Sun, Jan 22, 2012 at 1:56 AM, David Green <david.green@xxxxxxxxxxx> wrote:
I'm in the process of working on this, and looking for advice with respect to dependencies:

357294: [api] provide API for converting content to wiki markup

I'd like to consume jsoup from Orbit, but I'd like to keep WikiText dependencies to a minimum and not require jsoup for use of WikiText.  However if people would like to use the HTML parsing function of WikiText, then they should have the option of using jsoup.  For this reason it makes sense to use an optional dependency -- however I'd like for the dependency to be greedy from a p2 perspective.  What do you think, is this the right approach?  An alternative would be to create a new bundle for this functionality, but It seems a little heavy-weight to create a whole new bundle for this purpose.  If optional dependencies are the way to go, how would I make the dependency greedy for p2?

Thanks,

David

--
David Green
VP of Engineering, Tasktop
Committer, Eclipse Mylyn



_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev




--
Steffen Pingel
Senior Software Developer, Eclipse Mylyn
Mylyn Tasks Lead
http://tasktop.com


Back to the top