diff --git a/de.marw.cmake4eclipse.mbs/plugin.xml b/de.marw.cmake4eclipse.mbs/plugin.xml index 4a8ae33f..90baa185 100644 --- a/de.marw.cmake4eclipse.mbs/plugin.xml +++ b/de.marw.cmake4eclipse.mbs/plugin.xml @@ -152,6 +152,7 @@ name="Cmake4eclipse buildscript generator" point="org.eclipse.core.resources.builders"> diff --git a/de.marw.cmake4eclipse.mbs/src/main/java/de/marw/cmake4eclipse/mbs/nature/C4ENature.java b/de.marw.cmake4eclipse.mbs/src/main/java/de/marw/cmake4eclipse/mbs/nature/C4ENature.java index a47c77b3..ea07c116 100644 --- a/de.marw.cmake4eclipse.mbs/src/main/java/de/marw/cmake4eclipse/mbs/nature/C4ENature.java +++ b/de.marw.cmake4eclipse.mbs/src/main/java/de/marw/cmake4eclipse/mbs/nature/C4ENature.java @@ -20,6 +20,7 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.IProjectDescription; import org.eclipse.core.resources.IProjectNature; +import org.eclipse.core.resources.IncrementalProjectBuilder; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.NullProgressMonitor; @@ -60,7 +61,8 @@ private void addBuilders(IProgressMonitor monitor) throws CoreException { ICommand bldrCommand = description.newCommand(); bldrCommand.setBuilderName(Activator.BUILDER_ID); -// bldrCommand.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false); + // do not run on each resource delta change.. + bldrCommand.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, false); List commands = new ArrayList<>(Arrays.asList(description.getBuildSpec())); commands.add(0, bldrCommand);