No IArtifactRepositoryManager with Eclipse Oxygen 4.7.2 runtime [message #1785898] |
Sun, 22 April 2018 13:27  |
Eclipse User |
|
|
|
Hello everyone, may be somebody would have a clue on this one?
The following function worked perfectly in Eclipse Neon 4.6.x target runtime for a very long time in our RCP application. It stopped working with Eclipse Oxygen 4.7.2 target, - the IArtifactRepositoryManager returned is always null when trying to resolve it using agent.getService(..). Does anyone involved knows what was changed and how to fix this? It breaks our updates.., I am at a loss where to look...
public static boolean addRepository(IProvisioningAgent agent, String repo) {
IMetadataRepositoryManager mm = (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME);
IArtifactRepositoryManager am = (IArtifactRepositoryManager) agent.getService(IArtifactRepositoryManager.SERVICE_NAME);
if (mm == null || am == null) {
return false;
}
try {
URI uri = new URI(repo);
mm.addRepository(uri);
am.addRepository(uri);
return true;
} catch (Exception e) {
return false;
}
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.32865 seconds