Exclude non-existent test classes dirs from AOT test processing

See gh-32192
This commit is contained in:
Andy Wilkinson
2022-09-05 09:30:48 +01:00
parent 33bec854ce
commit cf84ae7ad8

View File

@@ -80,7 +80,7 @@ public class ProcessTestAot extends AbstractAot {
@TaskAction
public void exec() {
List<String> args = new ArrayList<>();
args.add(this.testClassesDirs.getFiles().stream().map(File::getAbsolutePath)
args.add(this.testClassesDirs.getFiles().stream().filter(File::exists).map(File::getAbsolutePath)
.collect(Collectors.joining(File.pathSeparator)));
args.addAll(processorArgs());
this.setArgs(args);