Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Evoy2004-06-07 15:42:42 -0400
committerSean Evoy2004-06-07 15:42:42 -0400
commitaee3c08d44141f97fa06cf2c92de15c0360c64b4 (patch)
treebf720383c33a9cb1934842a09205e0d16149b794 /build/org.eclipse.cdt.managedbuilder.core
parentc6b58b792ff5232c8a6dde4d7cd79b1dd050900e (diff)
downloadorg.eclipse.cdt-aee3c08d44141f97fa06cf2c92de15c0360c64b4.tar.gz
org.eclipse.cdt-aee3c08d44141f97fa06cf2c92de15c0360c64b4.tar.xz
org.eclipse.cdt-aee3c08d44141f97fa06cf2c92de15c0360c64b4.zip
No longer needed as the MinGW target has been removed
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.core')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/DefaultMinGWScannerInfoCollector.java70
1 files changed, 0 insertions, 70 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/DefaultMinGWScannerInfoCollector.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/DefaultMinGWScannerInfoCollector.java
deleted file mode 100644
index 174a5b0bf30..00000000000
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/DefaultMinGWScannerInfoCollector.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- **********************************************************************/
-package org.eclipse.cdt.managedbuilder.internal.scannerconfig;
-
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IResource;
-
-/**
- * Implementation class for gathering the built-in compiler settings for
- * MinGw-based targets. The paths are collected only in Win32 format.
- *
- * @since 2.0
- */
-public class DefaultMinGWScannerInfoCollector extends DefaultGCCScannerInfoCollector {
- /* (non-Javadoc)
- * @see org.eclipse.cdt.make.core.scannerconfig.IScannerInfoCollector#contributeToScannerConfig(org.eclipse.core.resources.IResource, java.util.List, java.util.List, java.util.List)
- */
- public void contributeToScannerConfig(IResource resource, List includes, List symbols, Map extraInfo) {
- // This method will be called by the parser each time there is a new value
- Iterator pathIter = includes.listIterator();
- while (pathIter.hasNext()) {
- String path = (String) pathIter.next();
- if (!filterPath(path)) {
- getIncludePaths().add(path);
- }
- }
-
- // Now add the macros
- Iterator symbolIter = symbols.listIterator();
- while (symbolIter.hasNext()) {
- // See if it has an equals
- String[] macroTokens = ((String)symbolIter.next()).split(EQUALS);
- String macro = macroTokens[0].trim();
- String value = (macroTokens.length > 1) ? macroTokens[1].trim() : new String();
- getDefinedSymbols().put(macro, value);
- }
- }
-
- /* (non-Javadoc)
- *
- * @param path
- * @return
- */
- private boolean filterPath(String includePath) {
- // MinGW's compiler will return paths in both POSIX and Win32 format
- // We only want to store the Win32 variant like:
- // <drive_letter>:<path>
- // \\<unc_path>
- int firstColon = includePath.indexOf(':'); //$NON-NLS-1$
- if (firstColon == 1 && Character.isLetter(includePath.charAt(0))) {
- // <drive>:<path> is OK
- return false;
- }
-
- return true;
- }
-
-
-}

Back to the top