summaryrefslogtreecommitdiffstats
path: root/vespa-maven-plugin
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-maven-plugin')
-rw-r--r--vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java
index 259ae2602c4..69c0e343872 100644
--- a/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java
+++ b/vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/GenerateTestDescriptorMojo.java
@@ -39,6 +39,8 @@ public class GenerateTestDescriptorMojo extends AbstractMojo {
}
private void analyzeTestClasses(TestAnnotationAnalyzer analyzer) throws MojoExecutionException {
+ if (! Files.exists(testClassesDirectory())) return;
+
try (Stream<Path> files = Files.walk(testClassesDirectory())) {
files
.filter(f -> f.toString().endsWith(".class"))