use of org.gradle.configurationcache.fixtures.SomeToolingModel in project gradle by gradle.
the class FetchCustomModelForEachProjectInTree method execute.
@Override
public List<SomeToolingModel> execute(BuildController controller) {
List<SomeToolingModel> result = new ArrayList<>();
GradleBuild buildModel = controller.getBuildModel();
collectModelsForProjects(controller, result, buildModel);
for (GradleBuild build : buildModel.getEditableBuilds()) {
collectModelsForProjects(controller, result, build);
}
return result;
}
use of org.gradle.configurationcache.fixtures.SomeToolingModel in project gradle by gradle.
the class FetchPartialCustomModelForEachProject method execute.
@Override
public List<String> execute(BuildController controller) {
List<String> result = new ArrayList<>();
GradleBuild buildModel = controller.getBuildModel();
for (BasicGradleProject project : buildModel.getProjects()) {
SomeToolingModel model = controller.findModel(project, SomeToolingModel.class);
if (model != null) {
result.add(model.getMessage());
}
}
return result;
}
use of org.gradle.configurationcache.fixtures.SomeToolingModel in project gradle by gradle.
the class FetchCustomModelForEachProject method execute.
@Override
public List<SomeToolingModel> execute(BuildController controller) {
List<SomeToolingModel> result = new ArrayList<>();
GradleBuild buildModel = controller.getBuildModel();
for (BasicGradleProject project : buildModel.getProjects()) {
SomeToolingModel model = controller.findModel(project, SomeToolingModel.class);
if (model != null) {
result.add(model);
}
}
return result;
}
Aggregations