org.gradle.api.ProjectState Java Examples

The following examples show how to use org.gradle.api.ProjectState. 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: GradleBuildMetricsCollector.java    From gradle-metrics-plugin with Apache License 2.0 5 votes vote down vote up
@Override
public void afterEvaluate(Project project, ProjectState state) {
    initializeBuildMetrics();
    long now = clock.getCurrentTime();
    ProjectMetrics projectMetrics = buildMetrics.getProjectProfile(project.getPath());
    projectMetrics.getConfigurationOperation().setFinish(now);
}
 
Example #2
Source File: ProfileEventAdapter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    long now = timeProvider.getCurrentTime();
    ProjectProfile projectProfile = buildProfile.getProjectProfile(project.getPath());
    projectProfile.getConfigurationOperation().setFinish(now);
}
 
Example #3
Source File: BuildProgressFilter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    if (project.getGradle() == gradle) {
        logger.afterEvaluate(project.getPath());
    }
}
 
Example #4
Source File: ProfileEventAdapter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    long now = timeProvider.getCurrentTime();
    ProjectProfile projectProfile = buildProfile.getProjectProfile(project.getPath());
    projectProfile.getConfigurationOperation().setFinish(now);
}
 
Example #5
Source File: BuildProgressFilter.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    if (project.getGradle() == gradle) {
        logger.afterEvaluate(project.getPath());
    }
}
 
Example #6
Source File: ProfileEventAdapter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    long now = timeProvider.getCurrentTime();
    ProjectProfile projectProfile = buildProfile.getProjectProfile(project.getPath());
    projectProfile.getConfigurationOperation().setFinish(now);
}
 
Example #7
Source File: BuildProgressFilter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    if (project.getGradle() == gradle) {
        logger.afterEvaluate(project.getPath());
    }
}
 
Example #8
Source File: ProfileEventAdapter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    long now = timeProvider.getCurrentTime();
    ProjectProfile projectProfile = buildProfile.getProjectProfile(project.getPath());
    projectProfile.getConfigurationOperation().setFinish(now);
}
 
Example #9
Source File: BuildProgressFilter.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void afterEvaluate(Project project, ProjectState state) {
    if (project.getGradle() == gradle) {
        logger.afterEvaluate(project.getPath());
    }
}