Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorVladimir Hirsl2005-06-02 18:54:34 +0000
committerVladimir Hirsl2005-06-02 18:54:34 +0000
commit041dbf3c91264d35a37c9ca12044aa651ea26014 (patch)
tree91ddbd98518ca1e1d12876d06883d846de3c14a8 /build
parent6df326b48cb755e149e589f7e6414b002bd2a4c1 (diff)
downloadorg.eclipse.cdt-041dbf3c91264d35a37c9ca12044aa651ea26014.tar.gz
org.eclipse.cdt-041dbf3c91264d35a37c9ca12044aa651ea26014.tar.xz
org.eclipse.cdt-041dbf3c91264d35a37c9ca12044aa651ea26014.zip
Using list of exsternal scanner info providers to discover project scanner info instead of hard coded value.
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java38
1 files changed, 20 insertions, 18 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java
index d6ba34150e3..601bd75100e 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/scannerconfig/ManagedBuildCPathEntryContainer.java
@@ -57,9 +57,7 @@ import org.eclipse.core.runtime.Platform;
public class ManagedBuildCPathEntryContainer implements IPathEntryContainer {
// Managed make per project scanner configuration discovery profile
public static final String MM_PP_DISCOVERY_PROFILE_ID = ManagedBuilderCorePlugin.getUniqueIdentifier() + ".GCCManagedMakePerProjectProfile"; //$NON-NLS-1$
- private static final String SPECS_FILE_PROVIDER = "specsFile"; //$NON-NLS-1$
- private static final String BUILDER_ID = MakeCorePlugin.getUniqueIdentifier() + ".ScannerConfigBuilder"; //$NON-NLS-1$
private static final String NEWLINE = System.getProperty("line.separator"); //$NON-NLS-1$
private static final String ERROR_HEADER = "PathEntryContainer error ["; //$NON-NLS-1$
private static final String TRACE_FOOTER = "]: "; //$NON-NLS-1$
@@ -176,23 +174,27 @@ public class ManagedBuildCPathEntryContainer implements IPathEntryContainer {
final IScannerConfigBuilderInfo2 buildInfo = ScannerConfigProfileManager.
createScannerConfigBuildInfo2(MakeCorePlugin.getDefault().getPluginPreferences(),
profileInstance.getProfile().getId(), false);
- final IExternalScannerInfoProvider esiProvider = profileInstance.createExternalScannerInfoProvider(SPECS_FILE_PROVIDER);
-
- // Set the arguments for the provider
-
- ISafeRunnable runnable = new ISafeRunnable() {
- public void run() {
- IProgressMonitor monitor = new NullProgressMonitor();
- esiProvider.invokeProvider(monitor, project, SPECS_FILE_PROVIDER, buildInfo, collector);
- }
-
- public void handleException(Throwable exception) {
- if (exception instanceof OperationCanceledException) {
- throw (OperationCanceledException) exception;
+ List providerIds = buildInfo.getProviderIdList();
+ for (Iterator i = providerIds.iterator(); i.hasNext(); ) {
+ final String providerId = (String) i.next();
+ final IExternalScannerInfoProvider esiProvider = profileInstance.createExternalScannerInfoProvider(providerId);
+
+ // Set the arguments for the provider
+
+ ISafeRunnable runnable = new ISafeRunnable() {
+ public void run() {
+ IProgressMonitor monitor = new NullProgressMonitor();
+ esiProvider.invokeProvider(monitor, project, providerId, buildInfo, collector);
}
- }
- };
- Platform.run(runnable);
+
+ public void handleException(Throwable exception) {
+ if (exception instanceof OperationCanceledException) {
+ throw (OperationCanceledException) exception;
+ }
+ }
+ };
+ Platform.run(runnable);
+ }
}
/* (non-Javadoc)

Back to the top