Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2011-05-27 06:18:22 -0400
committerAnton Leherbauer2011-05-27 06:18:22 -0400
commit4fcb9825881705a6d34d2e44b4c37cc32b65ca3a (patch)
treeae77c9b28a088db47eae1406803847a37d5b7c81 /build/org.eclipse.cdt.make.core
parent3b36b2bd9279c10ebd4c4b30af1cec40a1a7000a (diff)
downloadorg.eclipse.cdt-4fcb9825881705a6d34d2e44b4c37cc32b65ca3a.tar.gz
org.eclipse.cdt-4fcb9825881705a6d34d2e44b4c37cc32b65ca3a.tar.xz
org.eclipse.cdt-4fcb9825881705a6d34d2e44b4c37cc32b65ca3a.zip
Bug 346935 - [Scanner Discovery] PatternSyntaxException from build output parser
Diffstat (limited to 'build/org.eclipse.cdt.make.core')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java
index d0f41db694..46a8263cb6 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/gnu/GCCPerFileBOPConsoleParser.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2010 IBM Corporation and others.
+ * Copyright (c) 2004, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -19,7 +19,6 @@ import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
import org.eclipse.cdt.core.IMarkerGenerator;
import org.eclipse.cdt.internal.core.resources.ResourceLookup;
import org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector;
@@ -115,7 +114,7 @@ public class GCCPerFileBOPConsoleParser extends AbstractGCCBOPConsoleParser {
tokens[i]= "LONG_NAME"; //$NON-NLS-1$
}
else if (token.startsWith(shortFileName)) {
- tokens[i]= token.replaceFirst(shortFileName, "SHORT_NAME"); //$NON-NLS-1$
+ tokens[i]= "SHORT_NAME" + token.substring(shortFileName.length()); //$NON-NLS-1$
}
}

Back to the top