2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
8 package wtf
.metio
.yosql
.tooling
.gradle
;
10 import org
.gradle
.api
.Action
;
11 import org
.gradle
.api
.Task
;
12 import org
.gradle
.api
.tasks
.TaskProvider
;
14 public final class GenerateCodeAction
implements Action
<Task
> {
16 private final TaskProvider
<GenerateCodeTask
> generateTask
;
18 public GenerateCodeAction(final TaskProvider
<GenerateCodeTask
> generateTask
) {
19 this.generateTask
= generateTask
;
23 public void execute(final Task task
) {
24 generateTask
.get().generateCode();