1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00

Check only on the kind for now, until we have a

better way to deal with the deltas.
This commit is contained in:
Alain Magloire 2002-07-26 20:05:14 +00:00
parent 4956853ad0
commit c5bb4d2bde

View file

@ -56,19 +56,14 @@ public class CBuilder extends ACBuilder {
*/
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
IResourceDelta delta= getDelta(getProject());
boolean isFullBuild= (kind == IncrementalProjectBuilder.FULL_BUILD) || (delta == null);
boolean isFullBuild= (kind == IncrementalProjectBuilder.FULL_BUILD);
if (isFullBuild) {
invokeMake(true, monitor);
} else {
IResource res= delta.getResource();
//if (res != null && delta.getKind() != 0) {
if (res != null) {
IProject currProject= getProject();
if (currProject.equals(res.getProject())) {
invokeMake(false, monitor);
}
}
/* Take the code in the QNX Builder todo project dependencies. */
invokeMake(false, monitor);
}
forgetLastBuiltState();
return null;
}