summaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-01-24 23:42:43 +0100
committerJon Bratseth <bratseth@gmail.com>2022-01-24 23:42:43 +0100
commit8295de0768bcd6cfedab5a0767fe871fb6520dd7 (patch)
treeb8763e11894db51ae97ec7c89139ddb2eb6cfb11 /vespa-documentgen-plugin
parentdf48a11149e18d588f696ee6b867e9351ea90ea1 (diff)
SchemaBuilder -> ApplicationBuilder
Diffstat (limited to 'vespa-documentgen-plugin')
-rw-r--r--vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java b/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
index ee74c5c9cdf..775b29c4abd 100644
--- a/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
+++ b/vespa-documentgen-plugin/src/main/java/com/yahoo/vespa/DocumentGenMojo.java
@@ -18,7 +18,7 @@ import com.yahoo.document.annotation.AnnotationType;
import com.yahoo.documentmodel.NewDocumentType;
import com.yahoo.documentmodel.VespaDocumentType;
import com.yahoo.searchdefinition.Schema;
-import com.yahoo.searchdefinition.SchemaBuilder;
+import com.yahoo.searchdefinition.ApplicationBuilder;
import com.yahoo.searchdefinition.document.FieldSet;
import com.yahoo.searchdefinition.parser.ParseException;
import org.apache.maven.plugin.AbstractMojo;
@@ -114,7 +114,7 @@ public class DocumentGenMojo extends AbstractMojo {
annotationTypes = new HashMap<>();
outputDir.mkdirs();
- SchemaBuilder builder = buildSearches(schemasDir);
+ ApplicationBuilder builder = buildSearches(schemasDir);
boolean annotationsExported=false;
for (NewDocumentType docType : builder.getModel().getDocumentManager().getTypes()) {
@@ -134,9 +134,9 @@ public class DocumentGenMojo extends AbstractMojo {
if (project!=null) project.addCompileSourceRoot(outputDirectory.toString());
}
- private SchemaBuilder buildSearches(File sdDir) {
+ private ApplicationBuilder buildSearches(File sdDir) {
File[] sdFiles = sdDir.listFiles((dir, name) -> name.endsWith(".sd"));
- SchemaBuilder builder = new SchemaBuilder(true);
+ ApplicationBuilder builder = new ApplicationBuilder(true);
for (File f : sdFiles) {
try {
long modTime = f.lastModified();