Skip to content

Commit

Permalink
Use RepositoryHelper.getWorkspaceBundlePools to find all workspace pools
Browse files Browse the repository at this point in the history
Guard the use such that -Dpde.usePoolsInfo=false can be used to disable
the behavior.

eclipse-equinox/p2#410
  • Loading branch information
merks authored and laeubi committed Jan 6, 2024
1 parent 528efb4 commit a739cb9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,14 @@ private Collection<URI> getArtifactRepositories(ITargetDefinition target) throws
* @param additionalRepos the set to which additional repos are added.
*/
private void findWorkspaceRepos(Set<URI> additionalRepos) {
if (Boolean.parseBoolean(System.getProperty("pde.usePoolsInfo", "true"))) { //$NON-NLS-1$ //$NON-NLS-2$
try {
additionalRepos.addAll(RepositoryHelper.getWorkspaceBundlePools().stream().map(Path::toUri).toList());
} catch (Exception e) {
//$FALL-THROUGH$
}
}

IPreferencesService prefs = getPreferences();
if (prefs == null) {
return;
Expand Down

0 comments on commit a739cb9

Please sign in to comment.