add isIndexOnly as default method and read it to create build request

Signed-off-by: mmews <marcus.mews@numberfour.eu>
This commit is contained in:
mmews 2019-12-10 12:29:40 +01:00
parent 024139f469
commit c59ce4d0db
2 changed files with 11 additions and 0 deletions

View file

@ -128,6 +128,7 @@ public class ProjectManager {
return true;
});
result.setCancelIndicator(cancelIndicator);
result.setIndexOnly(projectConfig.isIndexOnly());
return result;
}

View file

@ -37,4 +37,14 @@ public interface IProjectConfig {
* @return the workspace config
*/
IWorkspaceConfig getWorkspaceConfig();
/**
* During the build, projects are indexed, validated and compiled. The return of this method configures whether this
* project is validated and compiled or not.
*
* @return true iff this project is indexed only
*/
default boolean isIndexOnly() {
return false;
}
}