File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/groovy/net/minecraftforge/testing/aggregate Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import org.gradle.api.DefaultTask
1212import org.gradle.api.file.DirectoryProperty
1313import org.gradle.api.file.ProjectLayout
1414import org.gradle.api.file.RegularFileProperty
15+ import org.gradle.api.model.ObjectFactory
1516import org.gradle.api.tasks.InputDirectory
1617import org.gradle.api.tasks.OutputFile
1718import org.gradle.api.tasks.TaskAction
@@ -23,11 +24,13 @@ abstract class AggregateTestImpl extends DefaultTask implements AggregateTestInt
2324 @Override abstract @InputDirectory DirectoryProperty getInput ();
2425 @Override abstract @OutputFile RegularFileProperty getOutput ();
2526
27+ private final AggregateTestProblems problems = objects. newInstance(AggregateTestProblems )
28+ protected abstract @Inject ObjectFactory getObjects ();
2629 protected abstract @Inject ProjectLayout getLayout ();
2730
2831 @Inject
2932 AggregateTestImpl () {
30- this . input. convention(this . layout. buildDirectory. dir(TEST_RESULTS_DIRECTORY ))
33+ this . input. convention(this . layout. buildDirectory. dir(TEST_RESULTS_DIRECTORY ). map(problems . ensureFileLocation()) )
3134 this . output. convention(this . layout. projectDirectory. file(' aggregate-test-results.html' ))
3235 }
3336
You can’t perform that action at this time.
0 commit comments