diff options
Diffstat (limited to 'java/src/IceGridGUI/Application/Adapter.java')
-rw-r--r-- | java/src/IceGridGUI/Application/Adapter.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/Application/Adapter.java b/java/src/IceGridGUI/Application/Adapter.java index 2b4f21cf2ac..fda47c0c42e 100644 --- a/java/src/IceGridGUI/Application/Adapter.java +++ b/java/src/IceGridGUI/Application/Adapter.java @@ -167,8 +167,18 @@ class Adapter extends TreeNode implements DescriptorHolder attributes.add(createAttribute("name", _descriptor.name)); String oaPrefix = _descriptor.name + "."; - attributes.add(createAttribute("endpoints", getProperty(oaPrefix + "Endpoints"))); - attributes.add(createAttribute("proxy-options", getProperty(oaPrefix + "ProxyOptions"))); + String value = getProperty(oaPrefix + "Endpoints"); + if(value != null && value.length() > 0) + { + attributes.add(createAttribute("endpoints", value)); + } + + value = getProperty(oaPrefix + "ProxyOptions"); + if(value != null && value.length() > 0) + { + attributes.add(createAttribute("proxy-options", value)); + } + attributes.add(createAttribute("id", _descriptor.id)); if(_descriptor.registerProcess) { |