-
Notifications
You must be signed in to change notification settings - Fork 44
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
Supply a general entry point for accessing P2 pools #373
Comments
This returns shared bundle pools as used by the Eclipse Installer. eclipse-equinox#373
This returns shared bundle pools as used by the Eclipse Installer. #373
Just log an exception and return an empty list in the unlikely event of failure. eclipse-equinox#373
Just log an exception and return an empty list in the unlikely event of failure. eclipse-equinox#373
Just log an exception and return an empty list in the unlikely event of failure. eclipse-equinox#373
Just log an exception and return an empty list in the unlikely event of failure. #373
It seems that When I change to a different Agent (and Bundle Pool) via Oomph "Bundle Pool Management", ~/.p2/pools.info
Oomph itself seems to get its information from agents.info / defaults.info below Background: in our company (using Windows mainly), installation files and/or caches should not be stored under the user home directory. For that reason, we define a different Agent/Pool location. |
Indeed. I mentioned in one of the commits that the agent manager is more general and supports multiple agents each of which can define pools. Longer term we can support that too, which is why I did not close this issue. But that’s like 1 in 1000 users, or fewer. Is your company contributing to Eclipse? 😁 |
I could imagine that many companies don't want/allow such things goings to user directories (e.g. think about "roaming profiles" or shared desktops or virus scanner exclusions). When thinking about support for Agents: if someone goes for different Agents to separate scopes for some reason*, I think PDE or Tycho should not use a "flattened" list of bundle pools across Agents, but only those of the "active" Agent. For PDE this seems clear (the Agent used in this workspace or Target Platform), for Tycho I have no idea how to define such "active" Agent. In the Installer, I have to select exactly one bundle pool already. (*) e.g. regarding security level ("certified" from trusted sources vs. "wild") |
@mmosconi1 We are doing small steps here that work for a larger audience of users with default setups. This will likely be enhanced/improved and the good thing is that the API facade we offer here should hide all the details and that's the key here. If you have special demands, feel free to help with this and start a contribution, it would be great to enhance the idea to even more functionality Ooomph offers. Regarding agents I think the best would be to define a |
Oomph has moved the encoding.info to be in the same folder as the agents.info which lists all the agent locations (rather than in the folder of the default agent's location). The agents.info file can be loaded to determine the location of the pools.info of each agent. This refined approach covers the full generality of Oomph's shared agent manager allows all pools of all agents to be located with no assumptions about defaults. eclipse-equinox#373
I have moved the encoding.info to the folder of the agents.info and I have updated the p2 helper to read the agents.info to locate all the pools. If someone doesn't want this behavior, it can be turned off via Note that PDE was already doing all kinds of questionable things such as loading all artifacts repositories from the Install/Update preferences. The whole point of much of that stuff is that one might as well use a local artifact already on disk rather than download it again from the internet... |
Oomph has moved the encoding.info to be in the same folder as the agents.info which lists all the agent locations (rather than in the folder of the default agent's location). The agents.info file can be loaded to determine the location of the pools.info of each agent. This refined approach covers the full generality of Oomph's shared agent manager allows all pools of all agents to be located with no assumptions about defaults. eclipse-equinox#373
Oomph has moved the encoding.info to be in the same folder as the agents.info which lists all the agent locations (rather than in the folder of the default agent's location). The agents.info file can be loaded to determine the location of the pools.info of each agent. This refined approach covers the full generality of Oomph's shared agent manager allows all pools of all agents to be located with no assumptions about defaults. eclipse-equinox#373
Oomph has moved the encoding.info to be in the same folder as the agents.info which lists all the agent locations (rather than in the folder of the default agent's location). The agents.info file can be loaded to determine the location of the pools.info of each agent. This refined approach covers the full generality of Oomph's shared agent manager allows all pools of all agents to be located with no assumptions about defaults. #373
There is some demands to share already downloaded data when accessing updatesites and different tools have different locations/caches to store items (see eclipse-pde/eclipse.pde#875, eclipse-tycho/tycho#2990).
We should define a general entry point for such tools to discover, read and add such pools with a global registry.
It could start as simple as
P2Pool.getPools()
returning a Stream ofIArtifactRepository
s that list all known to the registry.Later on we might want
P2Pool.addPool(Path)
to add one permanently andP2Pool.addPool(IArtifactRepository)
to add one transitively for the current run of the virtual machine.The text was updated successfully, but these errors were encountered: