Java Code Examples for org.gradle.StartParameter#isConfigureOnDemand()

The following examples show how to use org.gradle.StartParameter#isConfigureOnDemand() . 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: GradleParameters.java    From gradle-metrics-plugin with Apache License 2.0 6 votes vote down vote up
public static GradleParameters fromGradle(org.gradle.api.invocation.Gradle gradle) {
    StartParameter start = gradle.getStartParameter();
    List<KeyValue> projectProperties = KeyValue.mapToKeyValueList(start.getProjectProperties());
    return new GradleParameters(start.getTaskRequests(),
            start.getExcludedTaskNames(),
            start.isBuildProjectDependencies(),
            start.getCurrentDir(),
            start.getProjectDir(),
            projectProperties,
            start.getGradleUserHomeDir(),
            start.getSettingsFile(),
            start.getBuildFile(),
            start.getInitScripts(),
            start.isDryRun(),
            start.isRerunTasks(),
            start.isProfile(),
            start.isContinueOnFailure(),
            start.isOffline(),
            start.getProjectCacheDir(),
            start.isRefreshDependencies(),
            start.getMaxWorkerCount(),
            start.isConfigureOnDemand()
    );
}
 
Example 2
Source File: DefaultBuildConfigurer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void maybeInformAboutIncubatingMode(StartParameter startParameter) {
    if (startParameter.getParallelThreadCount() != 0 && startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution with configuration on demand");
    } else if (startParameter.getParallelThreadCount() != 0) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution");
    } else if (startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Configuration on demand");
    }
}
 
Example 3
Source File: DefaultBuildConfigurer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void maybeInformAboutIncubatingMode(StartParameter startParameter) {
    if (startParameter.getParallelThreadCount() != 0 && startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution with configuration on demand");
    } else if (startParameter.getParallelThreadCount() != 0) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution");
    } else if (startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Configuration on demand");
    }
}
 
Example 4
Source File: DefaultBuildConfigurer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void maybeInformAboutIncubatingMode(StartParameter startParameter) {
    if (startParameter.getParallelThreadCount() != 0 && startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution with configuration on demand");
    } else if (startParameter.getParallelThreadCount() != 0) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution");
    } else if (startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Configuration on demand");
    }
}
 
Example 5
Source File: DefaultBuildConfigurer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void maybeInformAboutIncubatingMode(StartParameter startParameter) {
    if (startParameter.getParallelThreadCount() != 0 && startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution with configuration on demand");
    } else if (startParameter.getParallelThreadCount() != 0) {
        SingleMessageLogger.incubatingFeatureUsed("Parallel execution");
    } else if (startParameter.isConfigureOnDemand()) {
        SingleMessageLogger.incubatingFeatureUsed("Configuration on demand");
    }
}