From 61c00b3d3b608af02fb903bac33606b89f70768e Mon Sep 17 00:00:00 2001 From: Mikhail Sennikovsky Date: Fri, 13 Apr 2007 12:24:09 +0000 Subject: [PATCH] Fix for [Bug 182309] The managed build does not work for source files in source folders. --- .../org/eclipse/cdt/core/settings/model/util/CDataUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/CDataUtil.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/CDataUtil.java index 3c0b0b0e941..02bf91aa7fe 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/CDataUtil.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/settings/model/util/CDataUtil.java @@ -504,6 +504,10 @@ public class CDataUtil { public static boolean isExcluded(IPath path, ICSourceEntry entry){ IPath entryPath = new Path(entry.getName()); + + if(path.isPrefixOf(entryPath)) + return false; + if(!entryPath.isPrefixOf(path)) return true;