diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/templateengine/processes/ExcludeResources.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/templateengine/processes/ExcludeResources.java index 007ed027092..a7e0b50aeec 100644 --- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/templateengine/processes/ExcludeResources.java +++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/templateengine/processes/ExcludeResources.java @@ -12,7 +12,6 @@ package org.eclipse.cdt.managedbuilder.templateengine.processes; import java.util.ArrayList; import java.util.Arrays; -import java.util.Iterator; import java.util.List; import org.eclipse.cdt.core.templateengine.process.processes.Messages; @@ -76,7 +75,7 @@ public class ExcludeResources extends ProcessRunner { * Determine which configurations to exclude for */ IConfiguration[] allConfigs = managedProject.getConfigurations(); - List/**/ matchingConfigs = new ArrayList/**/(); + List matchingConfigs = new ArrayList(); for(int i=0; i invertedConfigs = new ArrayList(Arrays.asList(allConfigs)); invertedConfigs.removeAll(matchingConfigs); matchingConfigs = invertedConfigs; } @@ -93,7 +92,7 @@ public class ExcludeResources extends ProcessRunner { /* * Visit project resources and exclude them if they match any pattern */ - final List configsToProcess = matchingConfigs; + final List configsToProcess = matchingConfigs; IResourceProxyVisitor visitor = new IResourceProxyVisitor() { public boolean visit(IResourceProxy proxy) throws CoreException { IPath lPath = proxy.requestFullPath(); @@ -104,17 +103,13 @@ public class ExcludeResources extends ProcessRunner { isDerived |= res.isDerived(); } - if(!isDerived) { - for(Iterator i = configsToProcess.iterator(); i.hasNext(); ) { - IConfiguration config = (IConfiguration) i.next(); - - + if(!isDerived) { + for (IConfiguration config : configsToProcess) { IResourceConfiguration resourceConfig = config.getResourceConfiguration(lPath.toString()); // Only add a resource configuration if the file pattern matches something that //is actually supposed to be excluded. Adding a resrouce configuration for all files // regardless of wheter they need it or not mess up the makefile generation. - for(int j=0; j