commit | e7385f194a7980d534990de7247b01159d84accf | [log] [tgz] |
---|---|---|
author | darins | Thu Dec 16 16:58:29 2004 +0000 |
committer | darins | Thu Dec 16 16:58:29 2004 +0000 |
tree | a6bd29690816e4c14833a6843c4c07fefbaecf33 | |
parent | ad81bc201481eb838ef2281aa608c2812897a6e9 [diff] |
Bug 81299 - Retrieving properties fails for empty string properties
diff --git a/ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/debug/model/AntThread.java b/ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/debug/model/AntThread.java index 1b75fbb..144d4ef 100644 --- a/ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/debug/model/AntThread.java +++ b/ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/debug/model/AntThread.java
@@ -317,7 +317,12 @@ propertyName+= DebugMessageIds.MESSAGE_DELIMITER + datum[++i]; } propertyValueLength= Integer.parseInt(datum[++i]); - propertyValue= datum[++i]; + if (propertyValueLength == 0 && i + 1 == datum.length) { + //bug 81299 + propertyValue= ""; //$NON-NLS-1$ + } else { + propertyValue= datum[++i]; + } while (propertyValue.length() != propertyValueLength) { propertyValue+= DebugMessageIds.MESSAGE_DELIMITER + datum[++i]; }
diff --git a/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/logger/debug/RemoteAntDebugBuildLogger.java b/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/logger/debug/RemoteAntDebugBuildLogger.java index 4805228..65bffb0 100644 --- a/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/logger/debug/RemoteAntDebugBuildLogger.java +++ b/ant/org.eclipse.ant.ui/Remote Ant Support/org/eclipse/ant/internal/ui/antsupport/logger/debug/RemoteAntDebugBuildLogger.java
@@ -329,6 +329,7 @@ } } } + propertiesRepresentation.deleteCharAt(propertiesRepresentation.length() - 1); fProperties= currentProperties; sendRequestResponse(propertiesRepresentation.toString()); }