From 00f6c5f14639291b35362b44697dc7d7067c776e Mon Sep 17 00:00:00 2001 From: Sean Evoy Date: Fri, 4 Jun 2004 22:43:53 +0000 Subject: [PATCH] Fix for bug 60144 -- Final fix for paths with whitepsaces. The test was not finding the index of the whitespace quite right on Linux. Addressed and fixed. --- .../cdt/managedbuilder/ui/properties/FileListControl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java index 462f64f9861..08e935b2e04 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java @@ -498,9 +498,8 @@ public class FileListControl { if (browseType == IOption.BROWSE_DIR || browseType == IOption.BROWSE_FILE) { // Check for spaces - int firstWhitespace = input.indexOf("\\s"); //$NON-NLS-1$ + int firstWhitespace = input.indexOf(" "); //$NON-NLS-1$ int firstBackslash = input.indexOf("\\"); //$NON-NLS-1$ -// String[] segments = input.split("\\s"); //$NON-NLS-1$ if (firstWhitespace != -1 || firstBackslash != -1) { // Double-quote paths with whitespaces input = "\"" + input + "\""; //$NON-NLS-1$ //$NON-NLS-2$