Renaming of parameter.
This commit is contained in:
parent
93dac553a4
commit
3e276232c3
@ -9,17 +9,17 @@ import com.jessebrault.ssg.util.Result
|
|||||||
final class SimpleBuildTasksConverter implements BuildTasksConverter {
|
final class SimpleBuildTasksConverter implements BuildTasksConverter {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
Result<Collection<Task>> convert(Build buildScriptResult) {
|
Result<Collection<Task>> convert(Build build) {
|
||||||
def taskSpec = new TaskSpec(
|
def taskSpec = new TaskSpec(
|
||||||
buildScriptResult.name,
|
build.name,
|
||||||
buildScriptResult.outputDirFunction.apply(buildScriptResult).file,
|
build.outputDirFunction.apply(build).file,
|
||||||
buildScriptResult.siteSpec,
|
build.siteSpec,
|
||||||
buildScriptResult.globals
|
build.globals
|
||||||
)
|
)
|
||||||
Collection<Task> tasks = []
|
Collection<Task> tasks = []
|
||||||
Collection<Diagnostic> diagnostics = []
|
Collection<Diagnostic> diagnostics = []
|
||||||
|
|
||||||
buildScriptResult.taskFactorySpecs.each {
|
build.taskFactorySpecs.each {
|
||||||
def factory = it.supplier.get()
|
def factory = it.supplier.get()
|
||||||
it.configurators.each { it.accept(factory) }
|
it.configurators.each { it.accept(factory) }
|
||||||
def result = factory.getTasks(taskSpec)
|
def result = factory.getTasks(taskSpec)
|
||||||
|
Loading…
Reference in New Issue
Block a user