diff options
author | Sean Evoy | 2004-06-04 22:43:53 +0000 |
---|---|---|
committer | Sean Evoy | 2004-06-04 22:43:53 +0000 |
commit | 00f6c5f14639291b35362b44697dc7d7067c776e (patch) | |
tree | 3a5bcdeac45b656ef42bc89522cc3b267d95e4cb /build | |
parent | 69a7699f8ca9a2274e56a9744f20cfabcad12a61 (diff) | |
download | org.eclipse.cdt-00f6c5f14639291b35362b44697dc7d7067c776e.tar.gz org.eclipse.cdt-00f6c5f14639291b35362b44697dc7d7067c776e.tar.xz org.eclipse.cdt-00f6c5f14639291b35362b44697dc7d7067c776e.zip |
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.
Diffstat (limited to 'build')
-rw-r--r-- | build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java | 3 |
1 files changed, 1 insertions, 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$ |