public class GradleAdapter extends Object
| Constructor and Description |
|---|
GradleAdapter(ProjectContext context,
org.gradle.tooling.ProjectConnection connection)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> modelType)
Returns a Gradle model of the project.
|
<T> GradleAdapter |
get(Class<T> modelType,
Consumer<? super T> configurator)
Returns a Gradle model of the project.
|
GradleAdapter |
launch(String... tasks)
Runs tasks in the project.
|
GradleAdapter |
withArguments(String... args)
Sets build arguments.
|
public GradleAdapter(ProjectContext context, org.gradle.tooling.ProjectConnection connection)
context - the project contextconnection - the target connectionpublic GradleAdapter withArguments(String... args)
args - the argumentspublic <T> T get(Class<T> modelType)
T - the model typemodelType - the model typepublic <T> GradleAdapter get(Class<T> modelType, Consumer<? super T> configurator)
T - the model typemodelType - the model typeconfigurator - the model consumerpublic GradleAdapter launch(String... tasks)
tasks - the tasksCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.