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:
parent
4956853ad0
commit
c5bb4d2bde
1 changed files with 4 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue