Search in sources :

Example 6 with GradleLauncher

use of org.gradle.initialization.GradleLauncher in project gradle by gradle.

the class DefaultIncludedBuild method execute.

@Override
public BuildResult execute(Iterable<String> tasks) {
    GradleLauncher launcher = getGradleLauncher();
    launcher.getGradle().getStartParameter().setTaskNames(tasks);
    try {
        return launcher.run();
    } finally {
        markAsNotReusable();
    }
}
Also used : GradleLauncher(org.gradle.initialization.GradleLauncher)

Aggregations

GradleLauncher (org.gradle.initialization.GradleLauncher)6 StartParameter (org.gradle.StartParameter)1 GradleInternal (org.gradle.api.internal.GradleInternal)1 SettingsInternal (org.gradle.api.internal.SettingsInternal)1 ClassPath (org.gradle.internal.classpath.ClassPath)1 DefaultClassPath (org.gradle.internal.classpath.DefaultClassPath)1 Path (org.gradle.util.Path)1