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());
 	}