diff --git a/src/eu/telecom_bretagne/praxis/platform/PlatformToClientBridge.java b/src/eu/telecom_bretagne/praxis/platform/PlatformToClientBridge.java index 4fe6571a873908d201e8fa6113a4e06edabbb2c0..4d85862878f0b99661cb05f5cbcefcbb34fe9d73 100644 --- a/src/eu/telecom_bretagne/praxis/platform/PlatformToClientBridge.java +++ b/src/eu/telecom_bretagne/praxis/platform/PlatformToClientBridge.java @@ -150,8 +150,15 @@ public class PlatformToClientBridge extends AbstractPlatform implements ServerTo RemoteComponents remoteComponents = new RemoteComponents(platform_conn[0], platform_conn[1], Integer.parseInt(platform_conn[2])); // TODO NumberFormatException remoteComponents.init(); Element programs = conf.getRootElement().getChild("programs"); + /* + * "local" resources /may/ be declared on the remote server, most of the times because they were present at + * compile-time and packed in the jar along with all the others. However, resources with provider named + * "local" are *never* shared: if they are present/declared on the remote side, we must ignore them, or they + * may shadow the one locally declared. + */ for (String resource: remoteComponents.getResourceRepository().getResources()) - programs.addContent(new Element("program").setAttribute("id", resource)); + if (!resource.startsWith("local")) + programs.addContent(new Element("program").setAttribute("id", resource)); CommunicationFacade cnx = CommunicationFacade.buildConnection("Platform", platform_conn); cnx.start();