Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
return false;
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    void invokeOperation(IResource resource, IProgressMonitor monitor)
            throws CoreException {
        ((IProject) resource).build(buildType, monitor);
    }
    /**
     * Returns whether the user's preference is set to automatically save modified
     * resources before a manual build is done.
     *
     * @return <code>true</code> if Save All Before Build is enabled
     */
    public static boolean isSaveAllSet() {
        IPreferenceStore store = IDEWorkbenchPlugin.getDefault()
                .getPreferenceStore();
        return store.getBoolean(IDEInternalPreferences.SAVE_ALL_BEFORE_BUILD);
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     *
     * Change the order of the resources so that
     * it matches the build order. Closed and
     * non existant projects are eliminated. Also,
     * any projects in cycles are eliminated.
     */
    List pruneResources(List resourceCollection) {