Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Eclipse-PatchFragment Require-Bundle

Tycho treats all *direct* optional dependencies as required (by default,
at least) and ignores all indirect optional dependencies. In you case,
you have fragment->host->optional_dependencies, which Tycho considers to
be indirect and ignores unless they are forced via <extraRequirements>
dependency-resolution configuration block.

I think expected/desired behaviour in this case is to treat host
optional dependencies as required, so feel free to open a bugreport.
Fixing this is likely to be tricky.

--
Regards,
Igor

On 12-03-08 11:35 AM, Mirko Swillus wrote:
Hej,

I just noticed that all the missing types are in bundles that are marked
as "optional" in the host's manifest. Now that I removed those optional
flags the build of the fragment works.

As I said, the former PDE build was fine with that optional
dependencies. Maybe Tycho could handle this in a similar way, by
default. When I got you right the discussion on [0] ended up like that
as well. But I'm a little confused after reading the extensive thread
there, maybe you could give me a short hint what's to do now. Thanks
again and regards,

Mirko

[0] https://bugs.eclipse.org/bugs/show_bug.cgi?id=351842


Am 08.03.2012 16:16, schrieb Mirko Swillus:
Hej Tobias,
Am 08.03.2012 14:29, schrieb Oberlies, Tobias:

So the resolution itself succeeds, but the resulting class path is
missing a lot of jars.
I have attached the relevant part of the debug output. Does the class
path match your observation
> that only the fragment's dependencies are there?

No. In the classpath you extracted are exactly the host's dependencies.
The fragment itself does not define a single dependency (see atached
MANIFEST.MF from the fragment attached [0]). I do not understand why the
build is than not able to find the types that are obviously in the
classpath. I attached the host's MANIFEST as well [1].

Thanks for your effort,
Mirko

[0] MANIFEST.MF Fragment:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Commons Plug-in RCP Fragment
Bundle-SymbolicName: com.foobar.rcp.commons.rcp
Bundle-Version: 4.0.0.qualifier
Fragment-Host: com.foobar.rcp.commons;bundle-version="[4.0.0,4.1.0)"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Eclipse-PatchFragment: true
Bundle-Vendor: foobar AG

[1] MANIFEST.MF Host:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Commons Plug-in
Bundle-SymbolicName: com.foobar.rcp.commons;singleton:=true
Bundle-Version: 4.0.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: %Bundle-Vendor.0
Export-Package: com.foobar.rcp.command.handler,
com.foobar.rcp.common,
com.foobar.rcp.databinding,
com.foobar.rcp.expressions,
com.foobar.rcp.extensionpoint,
com.foobar.rcp.handling.error,
com.foobar.rcp.help,
com.foobar.rcp.impex,
com.foobar.rcp.model,
com.foobar.rcp.model.table,
com.foobar.rcp.model.tree,
com.foobar.rcp.preferences.store,
com.foobar.rcp.runtime.status,
com.foobar.rcp.runtime.status.ui,
com.foobar.rcp.ui,
com.foobar.rcp.ui.action,
com.foobar.rcp.ui.composite,
com.foobar.rcp.ui.control,
com.foobar.rcp.ui.decorator,
com.foobar.rcp.ui.dialog,
com.foobar.rcp.ui.dnd,
com.foobar.rcp.ui.editor,
com.foobar.rcp.ui.event,
com.foobar.rcp.ui.fieldassist,
com.foobar.rcp.ui.handler,
com.foobar.rcp.ui.job,
com.foobar.rcp.ui.listener,
com.foobar.rcp.ui.perspective,
com.foobar.rcp.ui.preference.editor,
com.foobar.rcp.ui.preference.store,
com.foobar.rcp.ui.preferences,
com.foobar.rcp.ui.res,
com.foobar.rcp.ui.view,
com.foobar.rcp.ui.viewer,
com.foobar.rcp.ui.wizard,
com.foobar.rcp.util
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.7.0,3.8.0)",
org.eclipse.ui;bundle-version="[3.7.0,3.8.0)";resolution:=optional,
org.eclipse.core.expressions;bundle-version="[3.4.0,3.5.0)",

org.eclipse.core.databinding;bundle-version="[1.4.0,1.5.0)";resolution:=optional,


org.eclipse.ui.forms;bundle-version="[3.5.0,3.6.0)";resolution:=optional,

org.eclipse.jface.databinding;bundle-version="[1.5.0,1.6.0)";resolution:=optional,



org.eclipse.core.databinding.observable;bundle-version="[1.4.0,1.5.0)";resolution:=optional,



org.eclipse.core.databinding.beans;bundle-version="[1.2.0,1.3.0)";resolution:=optional,



org.eclipse.core.databinding.property;bundle-version="[1.4.0,1.5.0)";resolution:=optional,


com.foobar.commons.qtcommons;bundle-version="5.1.1",
org.apache.commons.beanutils;bundle-version="1.8.0",
org.apache.commons.codec;bundle-version="1.5.0",
org.apache.commons.collections;bundle-version="3.2.1",
org.apache.commons.io;bundle-version="2.1.0",
org.apache.commons.lang3;bundle-version="3.1.0",
org.apache.commons.math;bundle-version="2.1.0"
Eclipse-BuddyPolicy: registered
Bundle-ActivationPolicy: lazy
Bundle-Activator: com.foobar.rcp.common.CommonsPlugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-Localization: plugin
Import-Package: com.foobar.commons.query
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top