Java Code Examples for org.gradle.api.ProjectEvaluationListener#afterEvaluate()

The following examples show how to use org.gradle.api.ProjectEvaluationListener#afterEvaluate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LifecycleProjectEvaluator.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void notifyAfterEvaluate(ProjectEvaluationListener listener, ProjectInternal project, ProjectStateInternal state) {
    try {
        listener.afterEvaluate(project, state);
    } catch (Exception e) {
        if (state.hasFailure()) {
            // Just log this failure, and pass the existing failure out in the project state
            LOGGER.error("Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.", e);
            return;
        }
        addConfigurationFailure(project, state, e);
    }
}
 
Example 2
Source File: LifecycleProjectEvaluator.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void notifyAfterEvaluate(ProjectEvaluationListener listener, ProjectInternal project, ProjectStateInternal state) {
    try {
        listener.afterEvaluate(project, state);
    } catch (Exception e) {
        if (state.hasFailure()) {
            // Just log this failure, and pass the existing failure out in the project state
            LOGGER.error("Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.", e);
            return;
        }
        addConfigurationFailure(project, state, e);
    }
}
 
Example 3
Source File: LifecycleProjectEvaluator.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void notifyAfterEvaluate(ProjectEvaluationListener listener, ProjectInternal project, ProjectStateInternal state) {
    try {
        listener.afterEvaluate(project, state);
    } catch (Exception e) {
        if (state.hasFailure()) {
            // Just log this failure, and pass the existing failure out in the project state
            LOGGER.error("Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.", e);
            return;
        }
        addConfigurationFailure(project, state, e);
    }
}
 
Example 4
Source File: LifecycleProjectEvaluator.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void notifyAfterEvaluate(ProjectEvaluationListener listener, ProjectInternal project, ProjectStateInternal state) {
    try {
        listener.afterEvaluate(project, state);
    } catch (Exception e) {
        if (state.hasFailure()) {
            // Just log this failure, and pass the existing failure out in the project state
            LOGGER.error("Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.", e);
            return;
        }
        addConfigurationFailure(project, state, e);
    }
}