Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support names for Updates repositories in product definition #345

Closed
HannesWell opened this issue Oct 6, 2023 Discussed in #342 · 10 comments
Closed

Support names for Updates repositories in product definition #345

HannesWell opened this issue Oct 6, 2023 Discussed in #342 · 10 comments
Labels
noteworthy Noteworthy feature

Comments

@HannesWell
Copy link
Member

It should be possible to specify a name for an Repository referenced in the Updates configuration section of a Product.

In P2 this requires a consideration of a name attribute in org.eclipse.equinox.internal.p2.publisher.eclipse.ProductFile,processRepositoryInformation() and when the read repositories are processed.
In PDE the UpdatesSection and IRepositoryInfo need to be enhanced to also support adding a name attribute.

@jcompagner since you raised the issue, are you interested in working on this?

Discussed in #342

Originally posted by jcompagner October 2, 2023
Hi,

not sure where the product file belongs to that makes the product (is this platform or rcp? or p2?)

So i asked the question here, in the product file (editor) you can define your repositories where this product builds from (or updates from)

Problem is the name is not asked for, and then when you install it, in the preferences it is displayed very weird, because you have a lot without a name. The name seems kind of a bit mandatory (also in the p2.inf where i now place it)

Is there a reason for that? i tries to just adjust the product xml file by adding "name=xxx" or "displayname=xxx" but that isn't picked up.

@HannesWell
Copy link
Member Author

@jcompagner are you interested in working on this? If not I'll take care of this.

@jcompagner
Copy link
Contributor

yes i can have a look
But a bit busy, and next week i will be at Eclipse Con in Ludwigsburg ...

@ajohnson1
Copy link
Contributor

I did not get the update section of the product definition to work with Eclipse Memory Analyzer.
https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/org.eclipse.mat.product/mat.product

Instead I had to use a p2.inf file:
https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/org.eclipse.mat.product/mat-2023-12.p2.inf

This is with a Tycho/Maven build.

@HannesWell
Copy link
Member Author

HannesWell commented Oct 15, 2023

Instead I had to use a p2.inf file:
https://git.eclipse.org/c/mat/org.eclipse.mat.git/tree/org.eclipse.mat.product/mat-2023-12.p2.inf

Yes that's a workaround for the current situation, but the goal of this issue is to support this in the Product-definition directly. Under the hood p2 generates similar instructions from the product-definition, but that's an implementation detail.

yes i can have a look
But a bit busy, and next week i will be at Eclipse Con in Ludwigsburg ...

Great. I'll be there too, so maybe we can have a chat about this topic. :)

Since I would like to have support for update-site names in products soon and there is another Tycho 4 release in the end of the month I'm about to implement the support for updateSite-name for P2 now already (in Tycho something similar has to be implemented to have it now, but for that I think it is better to have the 'clean' version already).
Nevertheless the Editor-Support in PDE still needs to be implemented and if you are interested in that too, your help is more than welcome (it is probably a little more to code, but probably easier to implement and try out).

@jcompagner
Copy link
Contributor

Great. I'll be there too, so maybe we can have a chat about this topic. :)

we can have a meet up then in the coming few days.. to see each other face to face is always nice.

@HannesWell
Copy link
Member Author

@jcompagner can you tell already If/when you can look into the PDE-Editor support for this feature?

@jcompagner
Copy link
Contributor

i will have a look hopefully today,

But first i need to look at another PDE issue that suddenly pops up today
our main target file has "com.sun.jna" showing up under the content
But if we say "export" then the local dir target that is created doesn't have that jar for some reason..

And this i a problem, because my whole team works like that, we always export to a local dir "workspace/launch_target" and use that local target as our main target for developement
This is because PDE now and then always wants to connnect to remote stuff (even if set active target platform is not called for a long time) and if it then fails, you can't develop anymore because it doesn't resolve the target. which is really annoying

So we worked around this by always creating a local target from our main target.. And use that one, then the target never just invalidates because of some connection problems.
But suddenly now the export target doesn't work for some reason it doesn't generate the whole thing..

@jcompagner
Copy link
Contributor

@HannesWell
Copy link
Member Author

This is now completed and supported in p2 and PDE:

Thanks @jcompagner again for your help on this.

@HannesWell
Copy link
Member Author

Just created a new and noteworthy entry for this new feature:

HannesWell added a commit to eclipse-platform/www.eclipse.org-eclipse that referenced this issue Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
noteworthy Noteworthy feature
Projects
None yet
Development

No branches or pull requests

3 participants