Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] touchpoint actions and feature artifacts

Hi Simon,

Simon Kaegi wrote:

> <stuff deleted>
> I was looking to get a hold of the feature.jar.  That code was an
> attempt to get the feature.jar via featureIU.getArtifacts()[0].
>

A feature is broken into a feature group IU and feature jar IU. What I was getting at was that you were likely looking at the group iu instead of the feature jar IU.


How would the feature jar IU be accessed from inside the touchpoint/action parameters?


> <stuff deleted>
>
> Any ideas about why this doesn't work or pointers would be appreciated.
>

That code will find the artifact file for a Native artifact however you are using an artifact collected by the Eclipse Touchpoint.


Ah so. Just for my information: are any artifacts collected by the native touchpoint? If so, which/what ones?

Instead you should look at org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getArtifactFile(...) for inspiration. (keep in mind that this is not and will likely never be api so a snapshot might be the best approach)


ok.


That ugliness is temporary as the artifact location can and should be provided in the parameter map -- see https://bugs.eclipse.org/bugs/show_bug.cgi?id=275404


ok, sounds good.

Scott



Back to the top